Re: Using $this-set in view doesn't set the var

2011-09-10 Thread WebbedIT
Yip, the api does state Allows a template or element to set a variable that will be available in a layout or other element, but maybe this is when the element is being called from the view not the layout? People are not really supposed to read your layout though, that is set and should rarely be

async post cause controller error in 2.0

2011-09-10 Thread luca capra
Hi all, I'm facing a strangeness in cake 2.0 Using a filter form, which work well on normal post, if (with jquery) I bind the form.submit() with something like /$.post( form.attr('action'), form.serialize(), function(data){ $(#restable).html( $(#restable, data).html() ) } );/ which should post

Re: joining strings in model

2011-09-10 Thread the plumpNation
Apologies in advance if this sounds stupid, but have you tried setting this property in the constructor or it's cake equivalent? On Sep 9, 4:28 pm, lyba l...@poczta.fm wrote: Any suggestions why it is not possible to join strings in a model file:         $foo = 'A'.'B'; this produces error:

Re: ckaephp 2.0 using Configure::read in model construct method

2011-09-10 Thread badben
Thanks for you help but I am not sure that that is correct. Whilst I by no means pretend to be an expert at the inner workings of cakephp, the construct function in UserModel is called as the user model is first constructed, The parent::__construct() function in Model actually initializes the

Re: ClassRegistry::init and Model function availability problem

2011-09-10 Thread Tom Belknap
Bumps. Can anybody help me out with this? -- 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 their CakePHP related questions. To unsubscribe from this group, send email to

fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-10 Thread Tom Belknap
Ok, I have two separate Cake applications, both experiencing this error. And in the one case, its a brand-new installation. I quite literally just uploaded the files and setup permissions on the tmp directory. I'm running an Ubuntu Linux server. The other installation has been running without

Re: joining strings in model

2011-09-10 Thread void
You can use beforeFind Model's callback otherwise Model constructor. I prefer beforeFind method. class AppModel extends Model { [...] public function __construct($id = false, $table = null, $ds = null) { // Set here virtualFields ($this-virtualFields = X) $this-virtualFields

Re: How safe is CakePhps auth component and other ..

2011-09-10 Thread Miloš Vučinić
Thank you very much, you are most kind ! All the best, Milos On Sep 9, 4:54 pm, Thomas Ploch profipl...@googlemail.com wrote: 1.) The Auth component is safe. It uses a salted SHA1 encrypted pw by default. It auto-escapes the fields already, so you don't have to bother with it. Just use SSL to

Problem importing Comments Behavior Class in Controller class

2011-09-10 Thread papac...@gmail.com
I was installing the Comments Component from CakeDC ( https://github.com/CakeDC/comments ) But I have a strange error with Cakephp 1.3, my Controller refuses to import my Model Behavior, i dont know if its an error of Inflector Name to access the correct Behavior Class name but look at this =

ACL - Access Control List - Lista de Controle de Acesso

2011-09-10 Thread Maicon Pinto
Galera, sei que o espaço aqui é em inglês, mas sei que tem uma galera brasileira, que posta aqui. Alguém aqui trabalha com ACL? Estou seguindo o exemplo abaixo: http://book.cakephp.org/pt/view/1543/Sistema-Simples-com-controle-ACL-Lista-de-controle Gostaria de implementar maior restrição à

Re: Blog Tut help

2011-09-10 Thread papac...@gmail.com
Just use the Helper Html in your Controller. public $helpers = array('Html','Javascript'); On Sep 9, 9:17 am, Jeremy Williams cop...@gmail.com wrote: I did the blog tut on: http://book.cakephp.org/view/1528/Blog; and i have an error: Notice (8): Undefined property: View::$Html

Email component working wrong

2011-09-10 Thread Piotr Chabros
Hello, I have a function sending email to all the users, and every email sent is copied to another email address too: [CODE HERE] $this-Email-to = $User['User']['username']; $this-Email-bcc = array('b...@hotmail.co.uk'); [CODE HERE] The thing is the email sent to the user is different than the

Re: Unable to install CakePHP

2011-09-10 Thread saurabh mishra
this all are a problem of mac os this is already running in the win7 and all old os On Sat, Sep 10, 2011 at 2:01 AM, Yves S. Garret yoursurrogate...@gmail.comwrote: Ok, now it works. XAMPP did it. On Fri, Sep 9, 2011 at 1:52 PM, Chris theswimmingf...@gmail.com wrote: Why don't you just

Re: 'Site under maintenance' option

2011-09-10 Thread saurabh mishra
can u explain me that what is B plan On Sat, Sep 10, 2011 at 1:51 AM, Xoubaman xouba...@gmail.com wrote: Ip ranges is my B plan, but could be a problem with non-tech skilled admin users login from dinamic ips. I will come to this point later, so thanks for the answers, hope I can find a

Re: Blog Tut help

2011-09-10 Thread saurabh mishra
there are some defaultness just in place of var we can use varchar On Fri, Sep 9, 2011 at 9:09 PM, Sam Sherlock sam.sherl...@gmail.com wrote: I added the code from prev post to your code below. as you add more controllers you'd be better off adding general comps helpers to the

Why is this better?

2011-09-10 Thread elija
I'm going through the blog tutorial and have found myself wondering why ?php echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['Post'] ['id'])); ? is better than writing an a element? -- Our newest site for the community: CakePHP Video

CakePHP email component problem

2011-09-10 Thread Piotr Chabros
Hello, in my application there is a part of a code responsible of sending an emails to my users. It is a loop cycling through the whole database of users and just sending the email. Also when any email is sent, there is a copy sent to another email addres. The problem is that some of the users

Re: How safe is CakePhps auth component and other ..

2011-09-10 Thread Olaf Reitmaier Veracierta
Hi Milos, SSL is a must... take care of what happen recently to me: http://cakephp.19694.n2.nabble.com/Auth-ACL-proxy-server-mixed-up-sessions-td6535034.html Regards, Olaf. On 09/10/2011 02:36 PM, Miloš Vučinić wrote: Thank you very much, you are most kind ! All the best, Milos On Sep 9,

ACL Tips

2011-09-10 Thread Almacenamiento Almacenamiento
During this time I researched and analyzed the codes of the tutorials to fully understand the use of ACL + Auth with different permissions to groups, a topic with some complexity to my liking yet. I decided to put a couple of tips for those starting like me and have also some doubts, I hope they

Re: Why is this better?

2011-09-10 Thread Sam Sherlock
its a balance; the code you posted is readable and concise making links elements generally will add complexity to the simple and common (and varied task) of adding links when your link element has the ability to handle the various options it will be quite complex and the code will be less