Cache errors

2012-03-30 Thread Jeremy Burns
Although my site and cache is functioning, my debug log is littered with errors similar to this: 2012-03-30 23:45:28 Notice: Notice (8): unserialize() [function.unserialize]: Error at offset 4065 of 4085 bytes in [/var/www/clients/client1/_sites/cakes/1_3_13/ cake/libs/cache/file.php, line 190] 20

Re: redirecting problem

2012-03-30 Thread LITTO CHACKO
@crotch i wrote like this.. $this- >redirect('/seller/message/'); and u told me to do this try:: $this->redirect('/sellers/message'); what's the difference between two is it same??? Litto Chacko Axtec Softwares -- Our newest site for the community: CakePHP Video Tutorials http://tv.cak

Re: Email mock not working

2012-03-30 Thread LITTO CHACKO
Why don't you use the cakephp builtin component email it is nice and > easy to use > it can be include by:_ > public $components = array('Session','Email'); > > and can be used to send email by:_ > $pass = array('fullname'=>$name,'password'=>$p,'url'=>$url, > 'reference'=>$reference,'email'=>$e

Re: redirecting problem

2012-03-30 Thread CrotchFrog
try:: $this->redirect('/sellers/message'); On Friday, March 30, 2012 4:42:47 AM UTC-4, LITTO CHACKO wrote: > > hai guys, i have to met with other problem.. the problem is that whwn > i tried to submit a form it saves all data nad when it is asked > to redirect after saving it..it doesn't w

Email mock not working

2012-03-30 Thread Thiago Silva
Hello, I'm trying to use the mock when testing the e-mail sender. But it's not working. My code is: $Users = $this->generate('Users', array('components' => array( 'Email' => array(

Re: Send email Shell Application

2012-03-30 Thread LITTO CHACKO
Why don't you use the cakephp builtin component email it is nice and easy to use it can be include by:_ public $components = array('Session','Email'); and can be used to send email by:_ $pass = array('fullname'=>$name,'password'=>$p,'url'=>$url, 'reference'=>$reference,'email'=>$email); $this-

Re: Send email Shell Application

2012-03-30 Thread stork
> I found no documentation about it. What means "it"? http://book.cakephp.org/2.0/en/console-and-shells.html http://book.cakephp.org/2.0/en/core-utility-libraries/email.html -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questi

Re: Doubt regarding sessions in cakephp

2012-03-30 Thread Gabriel Vila Real
Hi Litto It looks like some php.ini configuration has to be done. Compare your local php.ini file with production php.ini file, and check the session configurations. -- Gabriel Vila Real On Thu, Mar 29, 2012 at 02:39, LITTO CHACKO wrote: > hai, buddies iam currently working in a project

Send email Shell Application

2012-03-30 Thread Fernando
I'm using cake 2.1 and I need to send emails by a Shell Application. I found no documentation about it. How can I do it? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with thei

Re: paginator with user defined page sizes...

2012-03-30 Thread DigitalDude
Hey, seems a bit too complicated to me... I suggest you just wrap the dropdown in a form, use a submit on the same page ($this->Form->create('Modelname', array('url' => $this- >here));) to send the form to the same action you're in at this moment. In your controller use a RequestHandler-Part to

Re: After a while Cache is not writeable

2012-03-30 Thread stork
You'll have to configure that for _cake_core_ cache, see http://book.cakephp.org/2.0/en/development/configuration.html#core-cache-configuration -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org an

Re: After a while Cache is not writeable

2012-03-30 Thread stork
This happens if you run console shell/task as root user with su or cron. Either specify user www-data in crontab, or change cache configuration to 'mask' => 0644, or - don't use FileEngine in production. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: 'Listen' for new database entries from a plugin

2012-03-30 Thread rainerpl
Thanks for the replies Events are probably what i need. All to do now is upgrading to 2.1 :) On Mar 30, 5:57 pm, Thomas Ploch wrote: > If you are using CakePHP 2.1, use CakeEvent to dispatch events for inter > plugin communication:http://book.cakephp.org/2.0/en/core-libraries/events.html > > On

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread 750riderAce
Thomas... could you please post what exactly you have *under each directory*? I'm using 2.1.1 and I believe I made exactly the same setup that you did, but I'm still getting the "Helper class MenuBuilderHelper could not be found" error this is what I do have: *app Plugin MenuBuilder

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread 750riderAce
Thomas... could you please post waht exactly you have under each directory? I'm using 2.1.1 and I did exactly the same setup that you did, but I'm still getting the "Helper class MenuBuilderHelper could not be found" error this is what I do have: *app Plugin MenuBuilder Controller -

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2012-03-30 Thread phpMagpie
I had to copy the TinyMCE js lib from the the plugin js folder to the /app/webroot/js folder and edit the plugins helper file. Something to do with plugin routing causing issues. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Que

Re: cakePHP Data into Google Charts

2012-03-30 Thread phpMagpie
I've outputted some charts (combocharts - near identical to column chart) using the visualization api and got the model to output an array like: Array ( [labels] => Array ( [0] => Age [1] => Clients [2] => Not Offered [3] => Accepted Off

Re: 'Listen' for new database entries from a plugin

2012-03-30 Thread Thomas Ploch
If you are using CakePHP 2.1, use CakeEvent to dispatch events for inter plugin communication: http://book.cakephp.org/2.0/en/core-libraries/events.html On 30.03.2012 16:45, rainerpl wrote: Hi I was wondering , if it is possible to write a plugin, that 'knows' if for example a new user registe

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread Sam Sherlock
in controller I setup the data for menus $main = array( array( 'title' => 'Home', 'url' => '/', ), array( 'title' => 'About', 'url' => '/about', ), array(

Re: 'Listen' for new database entries from a plugin

2012-03-30 Thread Jeremy Burns | Class Outfit
Add something to the User->afterSave method and check the $created variable - if it's true then do your backups, if it's false it's an update so do nothing. Jeremy Burns Class Outfit http://www.classoutfit.com On 30 Mar 2012, at 15:45:03, rainerpl wrote: > Hi > > I was wondering , if it is po

'Listen' for new database entries from a plugin

2012-03-30 Thread rainerpl
Hi I was wondering , if it is possible to write a plugin, that 'knows' if for example a new user registers. E.g would it be possible to write a plugin, that automatically duplicates/backs up user registration data, without requiring any modifications to the User model. (I know i could easily make

Re: XML DataSource or solution

2012-03-30 Thread digioz
Hello Carlos, I have a similar requirement, and was not able to find an XML data source anywhere. The closest I have seen to one is this one, which is half finished (and also dual data source which is not what I need): http://ask.cakephp.org/questions/view/crud_interaction_with_an_xml_data_so

XML or Text based Data Source?

2012-03-30 Thread digioz
Hello All, I have a small application I wish to write that requires storing data to either XML files or Plain Text files. I am therefore searching for either an XML or a Text Data Source for CakePHP 2.1, and was surprised that I am not able to find such Data Sources. Can anyone shed some light on

After a while Cache is not writeable

2012-03-30 Thread Kai Szymanski
Hi! I have a strange problem with my cakephp-Installation on Ubuntu 10.04 Server: Everything works fine but after a while i get the warning: fopen(/rootdir/cakephp/app/tmp/cache/persistent/cake_core_default_de- de) [function.fopen]: failed to open stream: Permission denied [CORE/ cake/libs/cache/

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread Thomas
Basically I now have the following setup which I copied from the git repository: app Plugin MenuBuilder Controller Test View I added the following line to /app/config/bootstrap.php: CakePlugin::load('MenuBuilder'); This is the code I added to /app/Controller/Appcontrol

Re: redirecting problem

2012-03-30 Thread JunLe Li
ini_set() work correctly? -- liju...@gmail.com | Public Key| Twitter | SinaWeibo On Fri, Mar 30, 2012 at 16:42, LITTO CHACKO wrote: > hai guys, i have to met with other prob

redirecting problem

2012-03-30 Thread LITTO CHACKO
hai guys, i have to met with other problem.. the problem is that whwn i tried to submit a form it saves all data nad when it is asked to redirect after saving it..it doesn't work??? if ($this->Email->send()) { $this- >redirect(

Re: Controller can't access the Session

2012-03-30 Thread LITTO CHACKO
i also came across same problem i arranged the code such that after initialising session.. read the variables in sessionand not put other codesbetween this.. if u do it.. u can get the result.. On Fri, Mar 30, 2012 at 12:19 AM, Miles J wrote: > On a side note, you are including tons of m

Re: problem of captcha

2012-03-30 Thread LITTO CHACKO
@mike.. thank god now the problem with captcha is solved. i don't know what made it to work i have made some arrangements with the code and get the captcha component work.. but now problem is it is not redirecting to corresponding page. any suggestions:- if ($this->Email->se

Re: paginator with user defined page sizes...

2012-03-30 Thread Thomas
Nobody that can help? On Tuesday, March 27, 2012 10:23:12 AM UTC+2, Thomas wrote: > > > > Am Montag, 26. März 2012 17:01:49 UTC+2 schrieb 100rk: >> >> Form using GET method, dropdown named 'limit' or 'show' with onchange = ' >> *this.form*.submit();' - see pagination settings 'paramType' and >> '