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

#25 User is offline   CodenObrian 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-May 14

Posted 28 May 2014 - 01:25 PM

View Posthgdien, on 24 January 2011 - 12:09 AM, said:



However, I got this error:
Alias "cal.CalModule" is invalid. Make sure it points to an existing PHP file.

How can I fix this?


How did you fix this? I have the same problem.
0

#26 User is offline   Sachy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 165
  • Joined: 01-December 13

Posted 11 October 2014 - 03:41 PM

View PostGustavo, on 24 January 2011 - 12:01 AM, said:

it is a module
put it under application.modules and the access it using the url /cal, if you are using urlFormat=path

also as explained in the extension, in your configuration file you must add the module to the modules index
like
return array(
   'modules'=>array(
      'cal'=>array(),//options
   ),
   'components'=>//...
);


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?
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