Re: Using multiple domains on one app to create four seperate sites

2010-10-01 Thread Bernardo Vieira
You can use apache's namevirtualhost directive plus server aliases to point all the domains to the same web root. After that all you have to do is inspect the hostname in the $SERVER super global and use that to switch the app's theme (this gives you the flexibility to have domain specific layou

Re: Xampp Lite and CakePHP error

2010-03-15 Thread Bernardo Vieira
Just configure the propper timezone in php.ini date.timezone setting: http://www.php.net/manual/en/datetime.configuration.php date.timezone = "America/Sao_Paulo" On Mon, Mar 15, 2010 at 12:59 PM, Celso wrote: > I am migrating my cakephp app from USBwebserver to xampplite and i > getting this err

Re: Subdomain Auth Problem

2010-03-08 Thread Bernardo Vieira
Where do I set the realm for the session cookie? The security level in > my core.php file is set to low. > > On Mar 8, 6:47 am, Bernardo Vieira wrote: > > You also need to set the realm of the session cookie to your domain > > (it defaults to the hostname) and set the se

Re: Subdomain Auth Problem

2010-03-08 Thread Bernardo Vieira
You also need to set the realm of the session cookie to your domain (it defaults to the hostname) and set the security level of the security component below 2 On 3/8/10, Kyle Decot wrote: > Well my sessions.save is set to database in my core.php file. Also, I > did $session->read() on my www page

Re: Guide on creating first application

2009-12-10 Thread Bernardo Vieira
What's your model name for the utilizadores table? My guess is CakePhp's inflector is not dealing very well with the portuguese plural rules Utilizador <-> Utilizadores. You could get the portuguese inflections maintened by the portuguese/brazilian cakephp community http://groups.google.com/group/c

Re: Find from multiple similar tables

2009-10-29 Thread Bernardo Vieira
I don't think there is a very cakeish way to do this, of course you could use a UNION statement in your sql query but then you wouldn't get any of the benefits from the ORM. On Thu, Oct 29, 2009 at 5:23 PM, ge...@dinnerbooking.com < ge...@dinnerbooking.com> wrote: > > I have two tables: > > house

Re: Fulltext and Order By

2009-08-22 Thread Bernardo Vieira
You have to include a the fields array in your query, and add a new field for the score column. The only drawback is that once you supply a fields array to your query cake no longer builds it for you automatically, so, in order to achieve the SELECT * effect you'd have to include all the fields fro

Re: When/how do you publish Bakery articles?

2009-07-15 Thread Bernardo Vieira
57bcaacd > > Check out voidstate and schneimi's comments further down. > > On Wed, Jul 15, 2009 at 12:01 PM, Bernardo > Vieira wrote: > >> +1 >> >> Bert Van den Brande wrote: >> >> Since I also use EclipsePDT as my Cake dev environment I

Re: Searching and filtering on "id" -- problem with form behavior (forms helper)

2009-07-15 Thread Bernardo Vieira
Hi, echo $form->input('Budget.id',array('type' => 'text')); Have you tried something like that? geste wrote: > Hello! > > I have a table where the primary key, "id" is not autoincremented, but > is in fact a 6-digit "real" value. I want to give people the ability > to search and filter by ID a

Re: When/how do you publish Bakery articles?

2009-07-15 Thread Bernardo Vieira
+1 Bert Van den Brande wrote: > Since I also use EclipsePDT as my Cake dev environment I'm very > interested in this article :) > > On Tue, Jul 14, 2009 at 4:02 PM, GravyFace wrote: > >> I wrote a tutorial on CakePHP + EclipsePDT autocomplete almost a month >> ago and it hasn't been published y

Re: views management

2009-07-15 Thread Bernardo Vieira
Theming you app is a piece of cake ;). All you have to do is set a couple of controller fields: class MyController extends AppController { var $view = 'Theme'; var $theme = 'mytheme'; } then in your views and webroot directories you´d create: views\ themed\ mytheme\

Re: $javascript->link("main.js") doesn't work

2009-03-04 Thread Bernardo Vieira
Try *echo *$javascript->link('*main*'); sulong wrote: > Hi, I am new to cakephp. I want to add a tag to the > head the page. I add the > > > > > in the layout's block, and > > $javascript->link("main.js"); > ?> > > > in the view. > > But I can not see any

Re: Hard problem on a save operation

2009-02-16 Thread Bernardo Vieira
You should either check if $this->data is present before running the save operation or if you need to access results from the model before the save method you show use find instead of read. marco.rizze...@gmail.com wrote: > Hi > I have this situation. > I use cake 1.2 stable. > I have a save ope

Re: containable and (left/inner) JOINS

2009-01-20 Thread Bernardo Vieira
Maybe that's the queue to develop a new 'Joinable' behavior based on the Containable behavior. Mark (Germany) wrote: > i guess i did forget to mention that i already tried that > but it gets totally ignored. > > and besides this fact, i would already be happy if it would do any > (e.g. left) joi

Re: Defining website structure with CakePHP

2009-01-19 Thread Bernardo Vieira
Take a look at wildflower cms, it's a cakephp based cms that does that. Stuart wrote: > I've been reading about the MVC approach, and am considering moving to > cakePHP as I think it would speed up my development in the long term. > One thing I can't quite fathom - how does one structure their we

Re: XAMMP for Windows with cakePHP

2009-01-18 Thread Bernardo Vieira
mod_rewrite comes disabled in xampp by default, have you checked it? Edit c:\xampp\apache\conf\httpd.conf, uncomment to mod_rewrite line, restart apache and have fun. Sharmo wrote: > I am not sure if my first post worked. I am therefore posting again. > > I am using XAMPP for Windows as my loca

Re: Nicer way to make a link to show/hide elements?

2009-01-18 Thread Bernardo Vieira
If you just need to show / hide content you can do something like this: link('Show/Hide','#',array('id' => 'togglelink')); echo $javascript->event('togglelink','$(\'toggle_content\').toggle(); Event.stop(event);'); ?> Quisque volutpat arcu et dolor? Vestibulum eu odio id neque laoreet

Re: Possible to change row results index to value of field?

2009-01-17 Thread Bernardo Vieira
You can do it with Set::combine, I haven't tried it, but should work along the lines of: $data = Set::extract($data,'/ModelName/id','/ModelName/'); Sikul wrote: > Is it possible to change the index of $results object returned by the > find() method from index of 1,2,3,...,n to a values of a fiel

Re: How to trip error manually...

2009-01-16 Thread Bernardo Vieira
You can use Model::invalidate(); Johnathan Henderson wrote: > Is there a way to activate and set the text of a $form->error outside > a validation rule? I've got some complicated validation logic in the > controller and I would like the error to show near the offending field > instead of using s

Re: Insertar un archivo en la carpeta app del cake

2009-01-16 Thread Bernardo Vieira
try putting it in your app/webroot folder. garza2002 wrote: > Buenas. > Querria insertar un archivo html independiente del cake en la carpeta > app del cake. El problema es que me da erro como de no conexion con la > base de datos cuando intento acceder a el: por ej: localhost/cake/app/ > prueba.

Re: A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-15 Thread Bernardo Vieira
Just one question though, why can't you just use app_controller for this? Or better yet, for added flexibility, put whatever you need in a component and use it in the controllers where you need remoting capabilities. Graham Weldon wrote: > Hey, > > Better than including php files, use the Cake

Re: Beginner: Cake PHP and XAMPP (windows)

2009-01-15 Thread Bernardo Vieira
Xampp comes with mod_rewrite disabled by default. Edit c:\xampp\apache\conf\httpd.conf, uncomment the LoadModule mod_rewrite line, restart apache and you should be good do go. Celso wrote: > Hello! I am new in cakephp, I am with a proposal to replace the asp by > php here in my work. Tentei >

Re: Two alphaNumeric validation on model, but I get a preg_match error on line 187, [CORE/cake/libs/validation.php]

2009-01-14 Thread Bernardo Vieira
I stumbled upon this error once as well. As it turns out, some versions of php - most notably the stock centos php package - are compiled without the -enable-unicode-properties. Since the alphaNumeric rule uses preg_match with the /u you get this error. You have two options, either recompile p

Re: Accessing a directory

2009-01-12 Thread Bernardo Vieira
Have you tried to put the livehelp folder inside your webroot folder? The stock .htaccess rules for the webroot folder are as follows: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] That means

Re: Simple String Manipulations?

2009-01-10 Thread Bernardo Vieira
Best place to handle this is in your model's beforeSave() callback: http://book.cakephp.org/view/683/beforeSave ingenious paradox wrote: > I'm very new to cake and I was hoping someone could demonstrate the > code necessary to take a form field input value and convert it to > uppercase. I know th

Re: Any built in way to do lazy deletes?

2009-01-09 Thread Bernardo Vieira
Try the delatable behavior. Not built in, but close. http://bakery.cakephp.org/articles/view/soft-delete-behavior Arthur Pemberton wrote: > "Lazy deletes" being setting a field appropriately so that the row is > 'deleted' but still in the database. > > --~--~-~--~~~-

Re: Preferred Modal Library?

2009-01-09 Thread Bernardo Vieira
I've been using livepipe controls (http://livepipe.net/control/window) for prototype since I've haven't taken the leap into jQuery or Mootools yet (shame on me). It works pretty well for modals, inline popups, hoverboxes, lightboxes etc. WebbedIT wrote: > Just after a general opinion of what

Re: hasMany + belongsTo relationship problem

2009-01-08 Thread Bernardo Vieira
Table names are lower_case_undescored_plural while model names are FirstCapsSingular, so: your tables should be: - persons --- id <--- using id as primary key makes your life a lot easier --- name --- surname - locations --- id --- person_id --- location_type_id --- address --- country - locatio

Re: How to do this in cakephp

2009-01-08 Thread Bernardo Vieira
You can use Model->query('any sql statement') to execute arbitrary sql code. Bear in mind, however, that what you're trying to do can be done with cake's built in methods in a much cleaner way. Model->query() should really be used as a last resort when cake can't handle what you're trying to

Re: Index.php's controller?

2009-01-08 Thread Bernardo Vieira
To none really. Steppio wrote: > Silly question by a silly question but to which controller does > index.php belong to? As in www.website.com/index.php? > > Sorry if it seems a tad basic but it's been bugging me awhile now > > Thank you in advance for your time! > > Ste > > > > --~--~---

Re: Points to bake a web 2.0 app

2009-01-07 Thread Bernardo Vieira
I've seen something similar before... just can't remember where. If I'm not mistaken it's a project from one of the authors of a cake related blog, but I reallycan't remember right now. Henrique Machado wrote: > Hello everybody! > > I would like to hear you about my new project. > > Me and a fr

Re: Can a webpage tell the source IP of a message? (no-ip.com like appliction)

2009-01-06 Thread Bernardo Vieira
In that case you want the router's ip, not the server's private ip behind the router, and this is exactly what $_SERVER['REMOTE_ADDR'] yields. You'll also have to set up some portfowarding on the target router to give you access to whatever port/protocol you want to use for your remote access.

Re: Checking for existence of entry before editing

2009-01-06 Thread Bernardo Vieira
try Model::exists() will wrote: > Hi there, > > Cake's baked controllers don't seem to include a check to see if an > entry exists before you edit it. You can "edit" entries that aren't > there. > > Is there a better (less resource-intensive) way of checking for the > existence of an entry than:

Re: Paginate two sets of data from the same model

2009-01-06 Thread Bernardo Vieira
Thanks majna, I'll look into it. majna wrote: > http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3 > > On Jan 6, 2:51 pm, Bernardo Vieira wrote: > >> Hi all, >> I'm trying t

Paginate two sets of data from the same model

2009-01-06 Thread Bernardo Vieira
Hi all, I'm trying to paginate two sets of data in the same view, I have done it before with data from different models and then specifying the target model when calling the paginator methods, of course this fails when the two datasets come from the same model. A sample usage scenario would be

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
t; This email was sent using the CakePHP Framework > > This is what is inside my confirmation.ctp under the /app/views/ > elements/email/html/ > > Hi , > Thank you for signing up in our service. To complete the sign up > process please click on the link below: > Confirm

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
t; This email was sent using the CakePHP Framework > > This is what is inside my confirmation.ctp under the /app/views/ > elements/email/html/ > > Hi , > Thank you for signing up in our service. To complete the sign up > process please click on the link below: > Confirm

Re: Using the named parameters

2009-01-05 Thread Bernardo Vieira
Slightly (but not by a big margin) shorter version: $var = ife($this->params['named']['var'],$this->params['named']['var']); gearvOsh wrote: > Is this the only way to access named parameters without throwing a > notice? > > $var = (isset($this->params['named']['var'])) ? $this->params['named'] >

Re: New Install Does Not Show Graphics

2009-01-05 Thread Bernardo Vieira
The actual path to .so files varies in the various linux distros. Scan through your httpd.conf and look for the extensions/modules path and see if mod_rewrite.so exists in that path (from the directory listing you provided I'm guessing /usr/local/apache2/modules). reidster wrote: > Thanks for

Re: List users who are logged in

2009-01-05 Thread Bernardo Vieira
AFAIK you'd need to create custom login and logout actions in your users controller to keep a list of logged in users. jmmg77 wrote: > Hi, > > I'm using Cake 1.2 RC3 and the Auth component. > > Is there a way to simply list the user accounts that are logged in. > Or, is there a way to check if a

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
It's not advisable to change code directly in cake's core files. Cake is designed in a way that pretty much everything is customizable on a per application basis. Furthermore the xMailer property is not actually visible in the email body, it only appears in the email's headers which are norm

Re: id as primary db key

2009-01-05 Thread Bernardo Vieira
You can set Model::primaryKey to whatever field you need ;) steveh wrote: > Folks, > > I'm a bit new to CakePHP (Java guy from the way back time)and all was > going well and I have been very happy with the framework until I > am trying to simply html->link a column record in a table to a view

Re: HABTM retrieving help

2009-01-04 Thread Bernardo Vieira
If I understood correctly you're trying to paginate realated HABTM data based on some condition on the join table? Have a look at http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/ and http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_ta

Re: ModelBaker ... umm... yummy

2009-01-04 Thread Bernardo Vieira
Maybe cakeapp? http://cakeapp.com Drinkspiller wrote: >> There was a web based thing floating around I saw posted on this group >> > WebBaker? > http://nio.infor96.com/webbaker/ > > > > > --~--~-~--~~~---~--~~ You received this message because you are sub

Re: ModelBaker ... umm... yummy

2009-01-02 Thread Bernardo Vieira
Wrap a gtk ui around bake and you're half way there ;) DM wrote: > Holy Cow, this thing looks freakin awesome! Does any other framework > have anything close to ModelBaker? www.widgetpress.com > > IMHO, if this thing takes off, this could add a ton of new people into > the community. I'll definit

Re: putting 2 modules on the same page

2009-01-02 Thread Bernardo Vieira
There are a few ways you can achieve this, depending of course what sort of data your're handling. Normally a login box doesn't require any model data so you can just make it into an element and have $this->element(...) [1] wherever you need your login box to appear. If you need to access mode

Re: Controller members

2008-12-31 Thread Bernardo Vieira
It's not matter of inheritance, the problem is that helpers aren't meant to be used in controllers. The $helpers array only tells the dispatcher which helpers to load when rendering the view. Try this: controllers/ajaxtests_controller function test() { $this->set('myvar',$arr); } views/aja

Re: Reverse relations?

2008-12-31 Thread Bernardo Vieira
User belongsTo Country? gearvOsh wrote: > I know how to do relations for foreign keys, but I cannot figure out > how to do this. > > In my users table, I have a column called state_id and country_id. I > tried a hasOne country but that does not work. It looks for a user_id > on the Country table

Re: Model data in all views

2008-12-30 Thread Bernardo Vieira
I think your best bet is to use requestaction on the categories controller and include an element on your default layout, have a look at http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction Daniel wrote: > Hi there, sorry to bother you with what is probally a ve

Re: How to give label when we take input type is file and how to give titles to your pages in cakephp

2008-12-30 Thread Bernardo Vieira
Find answers to all your questions in one place, no emailing required: http://book.cakephp.org mona wrote: > How to give titles to your pages in your layout where to give that > title > and i m taking input type file and i want to give name as attachment > on my view how to give this in label >

Re: Small problem passing variables

2008-12-30 Thread Bernardo Vieira
getLastInsertID() and getInsertID() are both equivalent model functions (please note the capitalized d in both of them). You can pass this to the view using set() in the controller as you would pass any other variable, however it doesn't feel quite right to do this. What I would do in your posi

Re: How to remove execution duration output

2008-12-30 Thread Bernardo Vieira
One thing you could do is include the request handler component in you app_controller and then in you app_controller's beforeFilter have something like: function beforeFilter() { parent::beforeFilter(); if ($this->RequestHander->isAjax()) { Configure::write('debug',0); } } That way you can

Re: Where to place new layout page

2008-12-28 Thread Bernardo Vieira
app/views/layouts mona wrote: > Can anybody tell me where to place my new layout page in cakephp so > that i call in my login function to use that layout > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Newby: Basic file structure for website & CMS

2008-12-28 Thread Bernardo Vieira
Have a look at prefix routing: http://book.cakephp.org/view/544/Prefix-Routing What you'll end up with is, for example: config/core.php // enable admin routing Configure::write('Routing.admin','admin'); controllers/news_controller.php NewsController { function index() { // this is pu

Re: count no of rows.

2008-12-27 Thread Bernardo Vieira
You can also optmize it a bit further and use countercache http://book.cakephp.org/view/490/counterCache-Cache-your-count Alexandru Ciobanu wrote: > majna wrote: > >> tipo :( >> $count = $this->Project->Message->findCount(array >> ('Message.project_id'=>$MyProjectId)); >> >> > > findCo

Re: HTML 4 specific CakePHP?

2008-12-27 Thread Bernardo Vieira
gearvOsh wrote: > In CakePHP you can "choose" the Doctypes of XHTML or HTML but the > taglist is all XHTML, which then causes markup errors. > gearvOsh, It shouldn't be too much of hassle to create a html4 helper based on the existing html helper. If you create your helper extending the exi

Re: % in url params

2008-12-18 Thread Bernardo Vieira
You shoul urlencode('90%') I suppose. Anyway, wouldn't it be better to use named parameters? That way you get cake's pretty urls and the html helper does the urlencoding as necessary for you. fito wrote: > Hi friends. > > I've been using cake for some months, but it was today the first time >

Re: Whats up with prototype and Cake 1.2?

2008-11-07 Thread Bernardo Vieira
Do you have the Javascript helper on whatever controller you're using? Ed Drain wrote: > I get the following error: > Line 31 is the one with the javascript->link part. > > Whats wrong with this? > > *Notice* (8) : Undefined variable: javascript > [*CORE\cake\libs\view\layouts\default.ctp*, line

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread Bernardo Vieira
This might come in handy when it comes to manipulating the extra data on the join table: http://www.cricava.com/blogs/index.php?blog=6&title=modelizing_habtm_join_tables_in_cakephp_&more=1&c=1&tb=1&pb=1 Adriano Varoli Piazza wrote: > Thanks for both the answers. I'm now dealing with the right wa

Re: Broken image if shown with file_get_contents()

2008-11-02 Thread Bernardo Vieira
Maybe you forgot whitespace after closing a php tag. Anupom wrote: > It works fine here! Did you try exiting at the end of the action? > > On Sun, Nov 2, 2008 at 7:48 PM, Giaco <[EMAIL PROTECTED] > > wrote: > > > That doesn't work either. The path is correct, put th

Re: Problem on Error Handling with CAKEPHP

2008-10-29 Thread Bernardo Vieira
when debug = 0, AppError::missing*() methods don't get called, instead you should override ErrorHandler::error404() [EMAIL PROTECTED] wrote: > Is It someone that can help me? > > On 29 Ott, 15:25, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > >> Hi >> I would use the Error HAndling of CA

Re: cakephp asterisk agi

2008-10-27 Thread Bernardo Vieira
How about symlinking /var/lib/asterisk/agi-bin into your vendors path? samba wrote: > hi > does someone tried to mix akephp and asterisk? > i want to use phpagi class working with cakephp. but asterisk phpagi > sould remain in the /var/lib/astersik/agi-bin directory and cake php > is in the /ww

Re: set_time_limit in Cake?

2008-10-24 Thread Bernardo Vieira
Very true, I was thinking about a page rendering script. As far as cli code goes, the ShellDispatcher construct method takes care of set_time_limit(0) for you. cake/console/cake.php ShellDispatcher::__construct( line 127 on 1.2 RC3): function __construct($args = array()) { set_time_l

Re: set_time_limit in Cake?

2008-10-24 Thread Bernardo Vieira
set_time_limit, when called from a script has effect only on the execution of that script/portion of code. You could call it anywhere in your app though IMHO set_time_limit(0) reeks bad design. Liebermann, Anja Carolin wrote: > Hi everybody! > > Is there a possibility to set the time limit for

Re: need your help - project model

2008-10-24 Thread Bernardo Vieira
[EMAIL PROTECTED] wrote: > I really dislike my work when I have "cheated" and built views after > the models... The gui never turns out nice... feels like > scaffolding :) > > Hehehe, interesting... The thing is this kind of approach would never work for me. I'm a terrible designer, cake's sca

Re: need your help - project model

2008-10-23 Thread Bernardo Vieira
Matthieu wrote: > Hi everybody, > > I'm planning to make a web application, it's a kind of a social > network. Would you know some guidelines to make this app from A to Z. > I want to build a space rocket, it's kind of a projectile... Just kidding. My point is you'll won't get much help by tos

Re: checkbox state

2008-10-23 Thread Bernardo Vieira
echo $form->input('MyModel.my_tinyint_field',array('value' => 1); That should do the trick. RyOnLife wrote: > Pardon me for asking I simple question, that I really feel I should have been > able to find an answer to, but... > > Using the form helper, how can I create a checkbox which always defa

Re: Updating a list with AJAX - picking from one list box and updating another

2008-10-21 Thread Bernardo Vieira
You could write a oncomplete callback that deletes the entry from the source list with a second ajax call to update the database. Not very elegant though. Perhaps its just simpler to wrap both lists in a div and update the whole thing with just one ajax call. tarapage wrote: > Hi, > > I'm new

Re: Saving self-referential-HABTM relationships...

2008-09-29 Thread Bernardo Vieira
I imagine it should work if you use different join tables for each HABTM relationship. Regardless of cakephp this is what I imagine you'd need in this situation (imagine what would happen if a user is both a friend and an admirer of another user). var $hasAndBelongsToMany = array(

Re: How to handle multiple image-upload in the same model / form?

2007-10-09 Thread Bernardo Vieira
burzum wrote: >My problem is that i have a multipage-report, or better to say one big >report (table) with ~500 fields devided into some pages with a list of >pages to make it less confusing. Some of the pages contain 1 to 12 >images. Now my question or problem: > >How do i handle them in a good

Re: How to do mod_rewrite????

2007-10-08 Thread Bernardo Vieira
Hi, Make sure all .htaccess files are in place, also, in some cases you have to set RewriteBase to get mod_rewrite to work. schneimi wrote: >Hi, > >not sure what version of Cake you use, but when I installed the latest >stable version of cakePHP, I was also very confused, mod_rewriting was >ob

Re: Pagination component misbehaving in php4

2007-05-25 Thread Bernardo Vieira
AD7six escreveu: > No idea. but as I develop with both php4 and 5 I am pretty sure it is > not specific to the (aging) pagination code. Sounds like more > debugging is needed ;). > > Cheers, > > AD AD, Boy I *really* hoped for a reply like "this is a simple issue, just do Pagination->foo = 'ba

Pagination component misbehaving in php4

2007-05-24 Thread Bernardo Vieira
Hi all! I have a project that uses the Pagination component. It works perfectly in my development environment, however when I uploaded the project to the production server things went sour. The component seems to do it's job, i.e. results get ordered, controlling the parameters via the url works a

Re: Using Helpers in default layout

2007-03-20 Thread Bernardo Vieira
gwoo, sorry for hijacking the thread, won't happen again ;), and thanks for the info, I'll give it a try. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-p

Re: SQL logic

2007-03-20 Thread Bernardo Vieira
Have you tried: /app/models/category.php array('className' => 'Story', 'limit' => '3') ); } ?> /app/models/story.php array('className' => 'Category'); } ?> You might want to add more logic to you join in the Ca

Using Helpers in default layout

2007-03-20 Thread Bernardo Vieira
Hi all! I've been trying to use helpers in the default layout, so I copied pages_controller.php to my app's controllers dir, added the javascript helper to the uses array, and added a call to the javascript helper in /app/views/layouts/default.thml : link('myjs');?> but I get 'Fatal error: Call

Re: Sending forms in an html email

2007-02-26 Thread Bernardo Vieira
Robin, Yahoo may include scanners to strip out those action references in their email servers in an effort to protect theis less than intelligent users, so I don't really see a way around that. Another problem is that, even if you do get the form past with the action tag intact you'll need to use

Re: Ajax tutorials

2007-02-23 Thread Bernardo Vieira
Check the group's history, there was a post earlier today with links to just that.. :P Junal Rahman escreveu: > I want to use Ajax in Cakephp. Can anybody give me a link of example where i > can see how to use Ajax in cake. > > > > --~--~-~--~~~---~--~~ You re