Re: How to correctly add a favicon in a cakephp layout???

2008-12-01 Thread Federico Rinaldi
Take a look at: http://book.cakephp.org/view/206/Inserting-Well-Formatted-elementsespecially the method *image* for inserting images and *meta* for the favicon stuff. Regards, FedeX On Mon, Dec 1, 2008 at 7:07 AM, Milmar <[EMAIL PROTECTED]> wrote: > > Currently I'm using the following method: >

Re: CakePHP and Extjs

2008-11-29 Thread Federico Rinaldi
Great to hear that others have helpers for ext too! If you are not going to release the code may be you can give me some hints to improve mine! About the MVC stuff, why you say it would be easier to App:Import the model in the helper if you are going to put the same logic as I did in the component

CakePHP and Extjs

2008-11-29 Thread Federico Rinaldi
Hi everyone, I want to share a piece of code that I've made to make life easier for those who work with extjs. The explanation and code is in my blog at http://spiritdesignstudio.com/fedex/?p=10&language=en also in spanish here: http://spiritdesignstudio.com/fedex/?p=10&language=es I'm going to

Re: Self contained css in Cake's default app

2008-11-29 Thread Federico Rinaldi
ready have those). FedeX On Sun, Nov 30, 2008 at 12:21 AM, mark_story <[EMAIL PROTECTED]> wrote: > > Could just not use the generic css on an already started app? > > -Mark > > On Nov 29, 2:52 pm, "Federico Rinaldi" <[EMAIL PROTECTED]> > wrote: > >

Self contained css in Cake's default app

2008-11-29 Thread Federico Rinaldi
Hi guys, I just wanted to ask what do you think about the css that comes by default in a cake's application. As far as I can tell it is very helpfull as it provides you a way to rapidly change the layout of your app but some times it's a real pain as it chages the base style for almost every html e

Re: REgarding using Mysql functions like NOW(), CURDATE() etc

2008-11-29 Thread Federico Rinaldi
Sorry I just addressed your specific problem. As your cuestion about being able to call a mysql function, I think you are missing the point about cake's database abstraction layer so your application would become database dependant. If that is not an issue for you, try this link: http://rafaelband

Re: REgarding using Mysql functions like NOW(), CURDATE() etc

2008-11-29 Thread Federico Rinaldi
Have you tried with: $this->data['User']['signedup'] = date("Y-m-d"); FedeX On Sat, Nov 29, 2008 at 12:23 PM, Malcolm Krugger < [EMAIL PROTECTED]> wrote: > > I maybe missing the obvious, But can someone please point the right > syntax for > >$this

Re: how to translate the pagination words: "next" and "previous"

2008-11-29 Thread Federico Rinaldi
You should use Localization: http://book.cakephp.org/view/162/Localizing-Your-Application And internationalization http://book.cakephp.org/view/163/Internationalization-in-CakePHP Regards, FedeX On Sat, Nov 29, 2008 at 10:07 AM, ahmed sabrah <[EMAIL PROTECTED]>wrote: > > i'm new to cakePHP,

Re: Upload behavior

2008-11-28 Thread Federico Rinaldi
om it and think that it's a great piece of code for newbies to understand how cake works. I'll give you guys feedback about my development. Thanks! Ad: About meeting you online, you mean by IRC? On Fri, Nov 28, 2008 at 9:11 AM, AD7six <[EMAIL PROTECTED]> wrote: > > >

Re: can interrelated models be baked in any order?

2008-11-28 Thread Federico Rinaldi
As long as your database schema it's properly created, the order shoudn't be a problem at all. But after reading your descriptions it seems that you have some issues understanding relations. For example if Course hasMany Chapter and Chapter hasMany Course then you have an HABTM relation so Chapter

Upload behavior

2008-11-27 Thread Federico Rinaldi
Hi folks, I'm looking for a component that would let me upload files and hook up to do some actions regarding the type of the file, this is, for a an pdf document just upload the file but for an image let me proccess it to resize it, for a video let me convert it to flv and so on. Again: I don't wa

Re: OT: PHP IDE with GIT and SVN Plugins

2008-11-27 Thread Federico Rinaldi
For the GIT part you can check out an early eclipse git implementation at http://git.or.cz/gitwiki/EclipsePlugin On Thu, Nov 27, 2008 at 3:41 PM, Alexandru Ciobanu <[EMAIL PROTECTED]>wrote: > > Penfold wrote: > > I'm currently using windows but i can swap to linux if there is a IDE > > that can c

Re: exception handling in phpcake

2008-06-24 Thread Federico Rinaldi
You should use the vendors dir then just use App::import('Vendor', 'YourCustomExceptionClass'); For more information on PHP Exception you can check out: http://www.php.net/exceptions** http://www.devshed.com/c/a/PHP/Error-Handling-in-PHP-Introducing-Exceptions-in-PHP-5/ http://www.w3schools.com/ph

Re: $loginRedirect in the Auth component does not work?

2008-06-24 Thread Federico Rinaldi
That's how it's supposed to work. The Auth component just redirects to $loginRedirect when you access the $loginAction directly becouse it doesn't have any where else to go. If you want to redirect somewhere else you can use the auth's or controller's redirect method after a succesfull login. On

Re: Documentation

2008-06-24 Thread Federico Rinaldi
I agree with Nate, I've been a cake developer for almost a year and made a few projects with ACL before I get things working. On Tue, Jun 24, 2008 at 3:22 PM, Nate <[EMAIL PROTECTED]> wrote: > > I totally don't get ACL. Like, at all. Who the heck wrote that?? > > On Jun 24, 12:11 pm, John David

Good coding

2008-06-24 Thread Federico Rinaldi
Hi all, I'm working in a helper that has to output lot of JS code. The thing is that I really dislike coding JS as string (ie "alert('whatever')") becouse I'm loosing all the code completition that modern IDE's do for me. So I'm actually doing something like this: (inside a helper class) function

Re: Importing a helper

2008-06-24 Thread Federico Rinaldi
It actually works but the Helper's callbacks are not called so is only viable if you don't need them. On Thu, Jun 19, 2008 at 9:48 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Wed, Jun 18, 2008 at 9:15 PM, Turnquist, Jonah <[EMAIL PROTECTED]> > wrote: > > > > I do not understand I did not

Re: Introduction

2008-04-21 Thread Federico Rinaldi
d it, not even on his blog :) > > > On Apr 21, 6:02 am, "Federico Rinaldi" <[EMAIL PROTECTED]> > wrote: > > Hi everyone, my name is Federico Rinaldi, my nick is eyesonly and I've > been > > a silent reader of the group posts for quite a while by now. I do

Re: Tutorial

2008-04-21 Thread Federico Rinaldi
Check this out http://book.cakephp.org/ On Mon, Apr 21, 2008 at 1:36 AM, pappu <[EMAIL PROTECTED]> wrote: > > Hi, > can you please send me one complete running tutorial on cakePHP. > > > thanks > sachin kambli > > > > --~--~-~--~~~---~--~~ You received this messag

Re: Email Problem

2008-04-20 Thread Federico Rinaldi
Here are some links I used some time ago that helped me. a) http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp b) http://book.cakephp.org/view/176/email http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent eyesonly On Mon, Apr 21, 2008 at 2:32 AM, Ro

Re: problem with related models and recursion

2008-04-20 Thread Federico Rinaldi
Can you provide also the CategoryI18n and the UnitI18n models? 2008/4/21 senser <[EMAIL PROTECTED]>: > > any ideas ??? > > On Apr 19, 10:33 am, senser <[EMAIL PROTECTED]> wrote: > > Hello! > > > > I have fivemodels: Offers, Category, CategoryI18n, Unit & UnitI18n > > and they're associated as fo

Re: Email Component 1.2 -- Problems with HTML and SMTP

2008-04-20 Thread Federico Rinaldi
I had a similar problem when I was sending the email with $this->Email->send ('Body of my email').The email was sent in text format. But then I changed to the template way. $this->Email->template = 'myTemplate'; $this->set('someValue', 'Body of my email'); And it started sending emails in HTML fo

Re: a couple of small things I can't figure out

2008-04-20 Thread Federico Rinaldi
This is the right way: $this->flash('The file has been uploaded.', '/students/view/' . $student, 2); On Mon, Apr 21, 2008 at 2:59 AM, damo <[EMAIL PROTECTED]> wrote: > > thanks again for all your help!! > > one more stupid question: > how do I use redirect or flash to go to a URL containing a va

Re: CakePHP with ExtJS

2008-04-20 Thread Federico Rinaldi
I've been working with ExtJS quite a while now, and right now I'm working in a large project that uses a lor of CRUD screens that has to be done with ExtJS grid and forms so I'm also working with the idea of a helper/component. For now I created in the app_controller the logic to feed every "index"

Re: XML Parsing Error: xml declaration not at start of external entity

2008-04-20 Thread Federico Rinaldi
Thanks Wayne! I had the same issue and it was caused by a space in a helper. On Wed, Oct 31, 2007 at 3:18 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Yes, this is a not-uncommon PHP error, and it causes problems in many > places. > > Wayne > > On 10/31/07, seacloud9 <[EMAIL PROTECTED]> wrote: