Re: third level domain and cakephp

2011-08-29 Thread Ashley Gibbon
Want the ftp details? On Sat, Aug 27, 2011 at 11:03 AM, Ben McClure ben.mccl...@gmail.com wrote: Question for you: Is your entire CakePHP application inside your web root, or just the app/webroot folder? Ideally your webroot should be pointing to CakePHP's app/webroot folder If that is

Re: third level domain and cakephp

2011-08-29 Thread Ashley Gibbon
Is your entire CakePHP application inside your web root, or just the app/webroot folder? I dont know Ideally your webroot should be pointing to CakePHP's app/webroot folder , would this be done in cpanel? I did not build the site, I had it done for me but they are just doing the back end

Re: Noob Looking for help editing site.

2011-08-29 Thread Ashley Gibbon
content here is. In what file in what folder etc. If I could only figure this out I may be able to move ahead. Also, what tool is used to develop sites like this, Dreamweaver or something else? Thanks. Ashley. On Aug 29, 2011 8:07 AM, Zaky Katalan-Ezra procsh...@gmail.com wrote: How it relate

Re: Noob Looking for help editing site.

2011-08-29 Thread Ashley Gibbon
/view/958/The-Pages-Controller add new pages to views/pages/ you can then view them via http://yourhost/pages/what-ever-your-file-is-called On 29 Aug 2011, at 13:33, Ashley Gibbon wrote: The site is built on cakephp framework. I had a guy build the site, he is still working on the back end

Re: displaying sql query

2010-06-04 Thread Toby Ashley
You never return $result from the getResult function. You need: function getResult() { $result = $this-query(SELECT * FROM `downloads` WHERE `index`=123); return $result; } On Fri, Jun 4, 2010 at 10:40 AM, ytbryan ytbr...@gmail.com wrote: Hi all, Can someone help me with

HABTM - retrieve items from ModelA that *are not* linked to a particular item from ModelB

2009-10-29 Thread Toby Ashley
Hello all, Assuming two hypothetical models, Post and Tag, joined with a HABTM relationship, of course it's trivial to retrieve a list of all Posts which are linked to a particular Tag. However, if I wanted to retrieve a list of all Posts which *are not* linked to a particular Tag, what would be

Re: Parse error in Model.

2009-10-28 Thread Toby Ashley
This... function validatePassword(password1 = null, password2 = null) { ...should be function validatePassword($password1 = null, $password2 = null) { On Wed, Oct 28, 2009 at 10:59 PM, centr0 centrosc...@gmail.com wrote: For the life of me i cant figure out why im getting a parse

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Toby Ashley
While this discussion is going on, I thought I'd raise / ask something... In a recent project, I needed to make it easy for administrators to be able to edit the text used throughout the site. The site itself runs in 12 languages, and as a result I have 12 *.po files, one per territory. The

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Toby Ashley
framework of choice. This is not translating text, and it not what I18n is to be used for. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Oct 14, 2009 at 9:15 AM, Toby Ashley lowpi...@gmail.com

HABTM with extra field - view setup question

2009-06-05 Thread Toby Ashley
Hi chaps, I have a relationship - User HABTM Organisation - and I have an extra field 'account_number' in my join table. On my user registration form, I need to it display a corresponding checkbox and text input for each organisation that exists in the database. If the user ticks the checkbox

How to get data from forms?

2006-04-20 Thread Ashley
Hi all! I've just been introduced to Cake world! But I have some problems in understanding how the framework handles the data from forms. I've done a simple model 'User' (username password as attributes), and then I've created a controller with: * an 'index' action that displays a login form *