Check this: http://www.yiiframework.com/forum/index.php/topic/31109-cal-extension-bug/
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;
}
}
Can anyone suggest how to make multiple resources per day?
Can I use this module to sync with my own davical server ?
How did you fix this? I have the same problem.
Hi Gustavo
I have just started to use the calendar extension.
I have placed the files in modules directory.
have also configured main.php and have added cal entry in the module array.
question is : how can I now render it within my application?
I tried calling ‘url’=>array(‘cal’) as seen below but cant get it working…
array('label'=>'<i class="icon icon-home"></i> Manage Calendar ', 'url'=>array('cal'),'itemOptions'=>array('class'=>'')),
Got the following error
The system is unable to find the requested action "cal".
Do you have a simple example please?