Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
tp://localhost/article/index > > the same echo in my the view give a NOTICE undefined index ... > > Why ? > Kind Regards > > On 21 nov, 13:54, FoxMaSk <[EMAIL PROTECTED]> wrote: > > Thanks you very much ! > > i'm starting to see how to rethink a complet

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
{ >$foxtal = & new foxtal(); >$this->set('foxtal', $foxtal); >} > } > > and then in default.ctp i still have : > > echo "foobar"; > print_r($foxtal); ?> > > which give the error Undefined v

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
Inizialize the class in your app_controller and export it to views using the set() method. On Nov 21, 2007 12:18 PM, FoxMaSk <[EMAIL PROTECTED]> wrote: > > Hi, > in the boostrap.php i call a vendor script that does a lot of stuff > > one of them is to get the punbb (a BB sofware) config > > class

Re: Bugs on Site

2007-11-15 Thread Repsah
Yes, ok, all true, the framework works fine, butno need to flame who points out some website failure, I would rather thank him and look at it. As a matter of fact appearing nice does count toward new public, and if developers don't have time for that particular functionality then maybe it's bet

Re: cake php causes bad programming

2007-10-26 Thread Repsah
disagree and I shouldn't add a word but 1) I just coded a web application for a small company, they didn't know cake, I showed it to them, the coding took half time the time they expected the project to be done and I worked on it part time instead than full time like they wanted to. They w

Re: file_put_contents(/var/www/.../app/tmp/cache/...) [function.file-put-contents]: failed to open stream:

2007-10-05 Thread Repsah
Don't know if it helps, but from what I see there it's not 777, it's 775 On 10/5/07, Kaj Kandler <[EMAIL PROTECTED]> wrote: > > > Gee! This is an ugly monster. > > I have done my homework (googled) and found the supposed solution is > to give 777 permission to the app/tmp dir. Didn't help! What he

Ajax form - multipart/form-data

2007-07-02 Thread Repsah
I have an Ajax form with a "file" input field but apparently, when I submit the form, the file field is considered as a text-field. the definition of the form should be correct (and the source code generated is too) $ajax->Form('Product', null, array('action' => 'add/'.$supplierId, 'enctype' => '

Re: Best method for extending existing models/controllers?

2007-06-22 Thread Repsah
It looks to me that you are trying to build a controller... That business should be in your ContentController which $uses all the models that you want, although I'm not a great fun of "generic" controllers. On 6/22/07, Jonathan Langevin <[EMAIL PROTECTED]> wrote: > > I'm building a generic Cont

Re: Paginator problem

2007-06-17 Thread Repsah
6/18/07, Repsah <[EMAIL PROTECTED]> wrote: > > I have been following the instruction reported here: > http://bakery.cakephp.org/articles/view/creating-reusable-elements-with- > requestaction > Checked the google group for possible answers for my problems, one matched >

Paginator problem

2007-06-17 Thread Repsah
I have been following the instruction reported here: http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction Checked the google group for possible answers for my problems, one matched but the solution didn't work. Basically, I'm using an element in a view, this elemen

Re: component or helper or both or... ?

2007-06-14 Thread Repsah
I solved it with an helper and some trick. Every day, I run from crontab a script that produces a config file (included in cake) fetching the possible banners from the DB and creating a php file with the banner definitions... Something like: define('BANNER1', serialize(array('3.jpeg' => 'http://

Re: highly customized web sites

2007-06-12 Thread Repsah
requestAction sounds about right to me, otherwise you can try ajaxing completely the left part and make ajax calls that update only that side (do that, so you'll kill the bosses). >From the talk I'd say Fastweb, by I won't leave Vodafone out, who are you working for? Another north italian like yo

Re: Downloading CakePHP

2007-06-08 Thread Repsah
Does the word "optional" in "optional donation" sound like interesting to you? On 6/8/07, Simunza S. Muyangana <[EMAIL PROTECTED]> wrote: > > > Thank you, > > Unfortunately I am in South Africa and my demit crd can not be used > for internet transactions. I do not have a credit card either. > > Be

Re: Session Problem for more than 1 variable

2007-06-08 Thread Repsah
No, nevermind, I read what you were doing wrong. On 6/8/07, ErreUve <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm new with cakephp and I try to write all the User model in the > session. > Why is better serialize? Is there any problem with the data? The read > and write works properly. > > Thanks >

Re: Session Problem for more than 1 variable

2007-06-08 Thread Repsah
ErreUve, you're writing an array in session, I think you need to serialize it (check the php functions serialize and unserialize). On 6/8/07, ErreUve <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I had the same problem. And I try wthis this: I put the 'User' in the > session and I read this at i

Re: このページを表示:「 Cake Apps/Sites In The Wild」

2007-06-05 Thread Repsah
Layout not working fine on FF On 6/5/07, 浪漫様 <[EMAIL PROTECTED]> wrote: > > > I added my new CakePHP website. > http://www.rohmansama.com > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: Edit

2007-06-01 Thread Repsah
which one is the edit function? If it's the second one try with $this->Client->id = $this->Session->read('client_id'); before saving. On 6/1/07, cake_learner <[EMAIL PROTECTED]> wrote: > > > When i try to update record, its inserting a new record. > > I have a registration page, containing 6 pa

Re: how can a controller access another model

2007-05-30 Thread Repsah
In your controller: var $uses = array('Vote', 'Object'); Then access the object model like you do form your objects controller On 5/30/07, Ita <[EMAIL PROTECTED]> wrote: > > > Hi, > In my DB I have 3 tables > objects, users & votes > > as you probably guessed a user can vote for an object. > I'v

Re: requestAction issue

2007-05-23 Thread Repsah
-- > > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog: http://www.MarianoIglesias.com.ar > ------ > > *De:* cake-php@googl

requestAction issue

2007-05-23 Thread Repsah
her. In a situation like mine, what would be the best way to access another controller's logic? Is there somewhere you can point me to? Thank you Repsah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Redirecting the bot

2007-05-01 Thread Repsah
What would be the best solution to catch a particular useragent and show a custom page only for that useragent whichever action or controller is invoked? I tried with routes but I failed miserably, can someone suggest me a valid solution for this? Thank you Repsah

Question on routes

2007-04-30 Thread Repsah
project\app\views\pages\index.thtml " Where am I going wrong? I think I'm missing something in the logic of routes but I don't know where my fault is. Also... how would I create a jolly route that redirects all actions of all controllers on a single page? Thank you repsah --~--~--

Re: Game in Cake PHP

2007-04-27 Thread Repsah
And fixed the bug ;) On 4/27/07, Repsah <[EMAIL PROTECTED]> wrote: > > yep, deleted them > > On 4/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > > > > > > On 27 abr, 12:40, Repsah <[EMAIL PROTECTED]> wrote: > > > I'll

Re: Game in Cake PHP

2007-04-27 Thread Repsah
yep, deleted them On 4/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > On 27 abr, 12:40, Repsah <[EMAIL PROTECTED]> wrote: > > I'll be glad to see you there to crush your tiny armies... > > > > Btw, I'm almost done with development, I mis

Re: Game in Cake PHP

2007-04-27 Thread Repsah
I'll be glad to see you there to crush your tiny armies... Btw, I'm almost done with development, I miss a few pics, some balancing and then I'll make a first test with 2-3000 players, we'll see how cake reacts ;) On 4/27/07, gwoo <[EMAIL PROTECTED]> wrote: > > &

Game in Cake PHP

2007-04-26 Thread repsah
nk you all. Repsah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECT

Cake from command line

2006-07-25 Thread Repsah
A few time ago I was faced with the need to use cake controllers actions from command line.. a.k.a. calling a controller action from a script outside cake.Very useful (to me) if I need to run jobs at cron which interact with my application without having to write a complete separate application whi

Re: scaffold troubles with non conventional name

2006-07-06 Thread Repsah
Hmm, speaking language... why use a plural for a model name when it should be singular? Isn't soggettus the singular for soggetti? So I would expect the model class to be Soggettus and the controller to be SoggettiContoller. I know, not a solution for your question, just... uno che ha fatto il lice

db errors

2006-07-05 Thread Repsah
I used (in very old versions of cake, well, maybe not so old... RC6) to be able to access DB errors from the model in this way:$this->db->errorI'm working again on an old project and I found out I'm not able to access these errors anymore, can someone point me to the right direction? Thanks --~--~

Re: hasMany + save()

2006-06-27 Thread Repsah
>From wiki, page on understanding associations:...[Cake will save the correct values for the join table if your form passes the proper field value. Assume, Post hasAndBelongsToMany Tag. You have a join table: posts_tags, with post_id and tag_id as the columns. If you are saving from PostsController

hasMany + save()

2006-06-26 Thread Repsah
I'm sure I've seen it asked before but I can't find the correct thread... anywayAssuming I have a model Userwhich hasMany AttributeIs there a way to call a single $this->User->save($this->data) to save values both in the users table and in the attributes table. I give it as a fact I'm building a co

Re: findAll and sorting

2006-06-22 Thread Repsah
Did you try$sortby = "Model.field1 desc, Model.field2 desc";And set debug up to 2 in core.php to check the query it's performing.On 6/21/06, Siegfried Hirsch <[EMAIL PROTECTED]> wrote: Hello there,I just came across a problem with sorting in the findAll function.I just coded:$sortby = "field1 desc

Re: Spam & Security component

2006-06-21 Thread Repsah
Smrt ;)On 6/21/06, RosSoft <[EMAIL PROTECTED]> wrote: There isn't any way for be sure that there's a robot posting comments.However, you can check the referer() for skip bad-implemented spamrobots. A good implemented spam robot will send the referer that youexpect and you will not see any diffe

Re: Can't caching view!

2006-06-20 Thread Repsah
Non lo siamo tutti?On 6/20/06, stefano <[EMAIL PROTECTED]> wrote: Lorenzo,sì! anche tu? --~--~-~--~~~---~--~~ Hai ricevuto questo messaggio in quanto sei iscritto al gruppo Gruppo "Cake PHP" di Google Gruppi.  Per mandare un messaggio a questo gruppo, invia una mai

Re: TestSuite

2006-06-20 Thread Repsah
Nevermind... I found out... thanks for help anywayOn 6/20/06, Repsah <[EMAIL PROTECTED]> wrote: I've done so, installed and working (except for img/css and js files which are not loaded in the default page, I guess because the path is incorrect, I've opened a ticket on the project)

Re: TestSuite

2006-06-20 Thread Repsah
I've done so, installed and working (except for img/css and js files which are not loaded in the default page, I guess because the path is incorrect, I've opened a ticket on the project).Now... where do I place my tests? In my app/controllers dir or under the tests/app/controllers dir? Or somewhere

Re: Understanding

2006-06-20 Thread Repsah
You can access the POST data from your controller at$this->dataAs you can see from your pastes the $this->data array contains the values you posted from your form. I assume you have a Post model. So, if you wanted to access your data, all you need to do is access the $this->data array$this->data['P

Re: TestSuite

2006-06-20 Thread Repsah
ll give my contribution with a dummy proof tutorial ( a.k.a. Repsah proof).Thanks for your help.On 6/20/06, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: What is the problem?Just download the test suite from http://cakeforge.org/projects/testsuite/ and copy the files in thecorrect directories. That's

TestSuite

2006-06-19 Thread Repsah
Can someone point me to any document clear enough to make the testSuite work? I found the pages on the wiki (RIP) but I guess I'm not smart enough to make it work, I found posts in cakebaker's blog, one in rossoft and a few messages in here but... I guess I'm in my dumb period.ThanksRepsah --~--~-