Yii Framework Forum: How to use yii cal extension? - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

How to use yii cal extension? Rate Topic: -----

#21 User is offline   Anthony Gaudino 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 22-April 12

Posted 22 April 2012 - 04:24 PM

View Postmrtain, on 10 April 2012 - 04:39 AM, said:

Any luck with this? I'm having the exact same problem, I've noticed that when the event div is created, it is placed inside the top div(allday container) but outside of the allday events.


Check this: http://www.yiiframew...-extension-bug/
0

#22 User is offline   Stageline 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 03-February 12

Posted 03 August 2012 - 06:59 AM

Your current user_id is kmgoddard, try components/UserIndentity and set up you code:

class UserIdentity extends CUserIdentity
{
	private $_id;
	/**
	 * Authenticates a user.
	 * The example implementation makes sure if the username and password
	 * are both 'demo'.
	 * In practical applications, this should be changed to authenticate
	 * against some persistent user identity storage (e.g. database).
	 * @return boolean whether authentication succeeds.
	 */

	public function authenticate()
	{
		$users = Users::model()->findByattributes(array('username'=>$this->username));

		if($users == null)
		{
			$this->errorCode=self::ERROR_UNKNOWN_IDENTITY;
		}else
		{
			if(md5($this->password) != $users->password)
			{
				$this->errorCode=self::ERROR_PASSWORD_INVALID;
			}else
			{
				$this->errorCode=self::ERROR_NONE;
				$this->_id = $users->id;
			}
		}
		return !$this->errorCode;
	}

	public function getId()
	{
		return $this->_id;
	}
}



View PostPreacher, on 27 October 2011 - 10:10 AM, said:

I get the following error when I first fun http://mysite/cmms/cal



CDbCommand failed to execute the SQL statement: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'kmgoddard' in 'where clause'. The SQL statement executed was: SELECT * FROM `events_helper` `t` WHERE user_id=kmgoddard 



added my username to:

protected function renderContent()
    {
        $isAdmin = true;    // check admin privileges
        if (true == $isAdmin)
            $users = array(// create you own users list


0

#23 User is offline   pistonov 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 22-January 13

Posted 22 January 2013 - 05:26 AM

Can anyone suggest how to make multiple resources per day?
0

#24 User is offline   geekgugi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 16-May 13

Posted 21 May 2013 - 02:51 AM

Can I use this module to sync with my own davical server ?
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users