Re: Help! CakePHP runs great in localhost but doesn't even shows up in remote Server ...

2011-05-02 Thread Sam Sherlock
does 000webhost.com supports .htaccess? consult with technical support cakephp quite depended upon this htaccess file so. what can I do to solve this problem no it does not pretty urls do see the core.php file (line 69 mentioned this in another post) - S On 2 May 2011 20:50,

Re: Creating admin panel!

2011-05-01 Thread Sam Sherlock
use admin routing each controller has distinct admin and public (non admin) actions - S 2011/5/1 İNGİLTERE EMRE BEY emirbige...@hotmail.com Hi everyone, I have a question, how to create admin panel in CakePHP, i am new to MVC and trying to figure out, i have followed blog tutorial and

Re: Site down config

2011-04-30 Thread Sam Sherlock
be sure to send the correct 503 header too (dp plugin does this) - S On 30 April 2011 22:46, DigitalDude e.blumsten...@googlemail.com wrote: Hey, that's easy: Simply define a route in your routes.php file like this: Router::connect('/*', array('controller' = 'pages', 'action' =

Re: Site down config

2011-04-30 Thread Sam Sherlock
On 30 Apr., 23:49, Sam Sherlock sam.sherl...@gmail.com wrote: be sure to send the correct 503 header too (dp plugin does this) - S On 30 April 2011 22:46, DigitalDude e.blumsten...@googlemail.com wrote: Hey, that's easy: Simply define a route in your routes.php file like

Re: Site down config

2011-04-29 Thread Sam Sherlock
David Persson's web master tools has a maintenance mode feature https://github.com/davidpersson/webmaster_tools hth - S On 29 April 2011 19:04, Toby G t...@tgpromotions.com wrote: Hi there, I'd like to be able to set a 'catch-all' route or config that allows me to direct all site

Re: cake testing call to undefined method CakeHtmlReporter::SimpleReporter()

2011-04-25 Thread Sam Sherlock
wierdness continues - I have not altered anything within the in in question not rebuilt anything nor changed anything - and tests within the app run again - S On 23 April 2011 18:21, Sam Sherlock sam.sherl...@gmail.com wrote: Hello Bakers This occurred before and I resolved

cake testing call to undefined method CakeHtmlReporter::SimpleReporter()

2011-04-23 Thread Sam Sherlock
Hello Bakers This occurred before and I resolved it by rebaking - but that is drastic (and it has occurred again) The app itself works still. Other apps can run tests I have cake1.3.8 installed, simpletest 1.0.1 currently this is happening on window7 but has also happened on ubuntu 10.4 I am

Re: Can someone explain this to me in English please

2011-04-18 Thread Sam Sherlock
the last line allows admin users to access all areas. Other roles are limited to thier respective prefixed routes add admin=false to your html-link calls On 18/04/2011, MeatSandwich i...@babyclothingcentral.co.uk wrote: Sorry for being a bit of a dumb-ass but I'm trying to learn and have been

Re: Can someone explain this to me in English please

2011-04-18 Thread Sam Sherlock
, manager, editor and on the homepage like this example do you have to write admin = false, manager= false, editor = false for every link? Or is there a short prefix = null type option? -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Sam

Re: Cookbook is partially offline/broken

2011-04-18 Thread Sam Sherlock
seems fine to me On 18 April 2011 19:06, Veraxus m...@mattvanandel.com wrote: Still seeing 500 errors all over the place, making the cookbook nearly useless as a reference tool. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: I want to allow a user to create his own page, the url of which would be his name

2011-04-18 Thread Sam Sherlock
using slugs (cakedc utils plugin sluggable or cake syrup) http://bakery.cakephp.org/articles/mariano/2007/03/24/sluggable-behavior and in routes App::import('Lib', 'routes/UserRoute'); Router::connect('/:slug', array( 'controller' = 'users', 'action' = 'view'),

Re: Plugin Views Not Showing

2011-04-13 Thread Sam Sherlock
stored in an underscored directory within the plugin dir of app (or another plugin path if defined) the plugin files for calendar would be inside a directory named calendar - you post had the files, for the calendar plugin, within the plugin dir - not within its own named direcory within this

Re: Plugin Views Not Showing

2011-04-11 Thread Sam Sherlock
see my adjustment below blog/ app/ plugins/ calendar/ calendar_app_controller.php calendar_app_model.php models/ calendar_event.php views/ elements/ calendar.ctp events/

Re: CakePHP 1.3 and AMFPHP

2011-04-10 Thread Sam Sherlock
there is this article http://bakery.cakephp.org/articles/vernerd/2009/06/28/flex-remoting-with-cakephp-cpamf-plugin-1 in the comments someone says it works well with 1.3 when changing routes - S On 10 April 2011 06:58, R0ckET leohida...@gmail.com wrote: I found only one plugin that list

Re: canceling action execution in the controller.

2011-03-29 Thread Sam Sherlock
use a condition within the action and redirect setting a flash message to show feedback to user - S On 29 March 2011 13:37, Michael Iv explomas...@gmail.com wrote: Hi all. I am an noobe here.I want to be able to cancel an action before its execution.The scenario is as follows. I have a

Re: CakeDC users plugin

2011-03-23 Thread Sam Sherlock
for index view is http://localhost/sample/users/users/ where do I add the admin prefix? I tried http://localhost/sample/admin/users/users/ and http://localhost/sample/users/admin/users/ without success. On Wed, Mar 23, 2011 at 12:42 AM, Sam Sherlock sam.sherl...@gmail.comwrote: nope only

Re: CakeDC users plugin

2011-03-23 Thread Sam Sherlock
have you got line 88 (ish) - Configure::write('Routing.prefixes', array('admin')); of app/config/core.php http://book.cakephp.org/view/950/Prefix-Routing - S On 23 March 2011 17:33, Zaky Katalan-Ezra procsh...@gmail.com wrote: I get this message: Missing Controller *Error: *

Re: CakeDC users plugin

2011-03-23 Thread Sam Sherlock
, Sam Sherlock wrote: http://localhost/sample/admin/users/users/ is the one this works fine for me as far as I recall When I access http://localhost/admin/users/users It redirects to http://localhost/admin/users/login and says Error: LoginController could not be found. I don't

Re: i'm newbie

2011-03-23 Thread Sam Sherlock
Cake bakes php app - app contain various classes or templates (.ctp) all php so it is possible to auto make files - sets of MVCs that related to each other behaviours, componants, helpers use php classes to extend app functionality ctp files call helpers and allow you to mix php /html using var

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
the CakeDC plugin uses register you could make the route users/add connect to the register action of the plugin - S On 22 March 2011 16:42, Ryan Schmidt google-2...@ryandesign.com wrote: I'm trying to add the CakeDC users plugin to my site. I've been postponing adding user login

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
A few other things strike me as odd with the users plugin (I can't recall what they are just now; not currently at my machine) If there's not supposed to be an add action, then why does plugins/users/views/details/ add.ctp echo $this-Html-link(__d('users', 'New User', true),

Re: On your journeys

2011-03-22 Thread Sam Sherlock
If I understand you then blockui can do what you want http://jquery.malsup.com/block/#element - S On 22 March 2011 14:16, Krissy Masters naked.cake.ba...@gmail.com wrote: Has anyone ever come across or seen a jquery plugin / script / that does the opposite of “Expose” in jquery.tools. I

Re: CakeDC users plugin

2011-03-22 Thread Sam Sherlock
nope only migrations and schema https://github.com/CakeDC/users/tree/master/config/ and to me it would make more sense if register mapped to add On 22 March 2011 22:35, gremlin abba.bry...@gmail.com wrote: Just a guess - is there a routes file in the plugin that you didn't copy over to your

Re: New project, what version?

2011-03-20 Thread Sam Sherlock
1.2 was beta for time 1.3 also I have been following 2 dev that much as yet I think 2.0 will have a stable release months from when 2.0 end of beta rc1 is out - that will, itself be sometime yet On 20/03/2011, Tilen Majerle tilen.maje...@gmail.com wrote: i ask about 3 5 days ago here when

Re: obfuscate hash form ids

2011-03-15 Thread Sam Bernard
If you really want to do this, the best way would be to extend the formHelper to generate the obfusciated fields and then a component that will convert it back to a normal data array before the controller action gets it. -- Our newest site for the community: CakePHP Video Tutorials

Re: configuring the console's profile to run bake

2011-03-14 Thread Sam Sherlock
I use mingw and after setting up as guided in 'setting up console on windows' bake will work from mingw/msys cmd prompt http://tv.cakephp.org/video/gwoo/2010/12/24/setting_up_the_cakephp_console_on_windows On 13 March 2011 20:16, foug hellof...@gmail.com wrote: hi, i'm following the book

Re: SSL questions

2011-03-11 Thread Sam Bernard
How about you just extend the html helper and add your own link function- something like: function sslLink($title, $url = null, $options = array(), $confirmMessage = false){ if(!$url){ $url = $title; } //manually set ssl domain, in case it's

Re: RE: SSL questions

2011-03-11 Thread Sam Bernard
, you can use .htaccess and mod_rewrite to force ssl on certain pages. -- Sam Bernard sambernard.net -- 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

Re: SSL Help

2011-03-11 Thread Sam Bernard
You're getting infinite redirects because there is no condition in your forceSSL function- have it check for https first, otherwise it will just keep redirecting: function forceSSL( if(isset($_SERVER['HTTPS']) $_SERVER['HTTPS'] == 'on') ) { return; } else {

Re: CSS help

2011-03-10 Thread Sam Sherlock
I think its called asset timestamping see the htmlhelper for examples works on img,css and js On 10/03/2011, dunny wizardofr...@gmail.com wrote: Is there a way to add epoch to the end of the css file like so: http://example.com/my.css?1299749966 using the Html helper? Its helpful to force a

Re: Mobile Phone Layout - Using the RequestHandler in the CakeErrorController / AppError

2011-03-10 Thread Sam Bernard
Take a look at this link- http://deadlytechnology.com/php/api-error-handling/ Basically it shows how to create a custom errorhandler including the ability to access the requeshandler(using $this-controller-RequestHandler). Make sure you read the comments if you have any issues implementing it.

Re: search function results

2011-03-10 Thread Sam Bernard
What error are you getting? %20 is just a urlencoded space... it isn't an error. If you want to replace it with a space then just do your str_replace on your $url var right before $this-redirect($url);. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: How to validate multiple fields with the same name?

2011-03-10 Thread Sam Bernard
You *should* be able to do this with saveAll. saveAll will validate your records and then try to save all the records in a single transaction, so you don't have to validate first and then perform a transaction. If for some reason you wanted to validate separately- just do: $this-

Re: HABTM: has a related data

2011-03-10 Thread Sam Bernard
Paginate is a controller function, not a model function- so you can't call it on the model. I'm a little confused as to what you are trying to do- what controller are you trying to paginate your Lot records from? Also, have you read the cookbook section on pagination?

Re: Make webroot index the home page

2011-03-08 Thread Sam Sherlock
is the cake app to be installed in a subdir called cake you could put wp in a subdir of the cake app (or otherway round) but may prove to be more trouble than its worth in the past I ahcieved this with the following I found strange things to occur [code] IfModule mod_rewrite.c RewriteEngine

Re: mysql and cakephp question

2011-03-07 Thread Sam Bernard
This usually means that you tried to call a function on your model that doesn't exist. Are you calling a function called useValidationRules? Are you sure you actually created the function in the correct model? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: problems with debug in cake v.1.3.7

2011-03-07 Thread Sam Bernard
Are you referring to the sql log that used to appear at the bottom of the page? According to http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3#Model-Databases-and-Datasources-1567: *SQL log dumping* A commonly asked question is how can one disable or remove the SQL log dump

Re: Database question

2011-03-06 Thread Sam Bernard
http://nuts-and-bolts-of-cakephp.com/2008/05/22/incrementing-a-field-in-cakephp/ -- 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

Re: redirect trouble

2011-03-05 Thread Sam Bernard
It's not working because in the value of $id is null when submitting your form data- it is being stored in $this-data['ModelName']['id']. Use that for the redirect. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Firing queries in cakephp

2011-03-05 Thread Sam Bernard
Is the id of the associated row included in your data? If not, it will do an insert and not an update. -- 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

Re: Help with a naive delete problem

2011-03-05 Thread Sam Bernard
Use: $this-Seccion-*delete*($id) I'm pretty sure Model::del is deprecated. -- 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

Re: Help with a naive delete problem

2011-03-05 Thread Sam Bernard
Exactly. del is a deprecated function, so replace if ($this-Seccion-*del*($id)) { with if ($this-Seccion-*delete*($id)) { When a model function doesn't exist- cake tries to use it as sql, which is why del showed up as your sql query. -- Our newest site for the community: CakePHP Video

Re: Changing Employment - Preparing CakePHP for a new Developer

2011-03-04 Thread Sam Bernard
Stephen- I'd definitely start by making sure all your classes are properly commented, and then using the Cakephp API generator(https://github.com/cakephp/api_generator) to generate some documentation from your code. Put together a document that includes links to the relevant documentation

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread Sam Bernard
One simple way is just to have a generic dashboard action that chooses what to display based on user role. You'll want to make sure to manually call $this-render() in your _dashboard actions. function dashboard(){ $this-autoRender = false; if($this-Auth-user('role') == 'admin')

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread Sam Bernard
In the beforeFilter of your AppController you could set $this-Auth-autoRedirect = false And then just manually fill in your login action function login(){ if(!empty($this-data['User']) $this-Auth-login($this-data)) if($this-Session-read('Auth.redirect')){ //if you got redirected to login by

Re: RE: Auth Help

2011-03-04 Thread Sam Bernard
I was reading a blog recently where someone was having a similar problem, except using IE on windows. They got it working by setting: Configure::write('Session.checkAgent', false); in core.php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

How to completly deny access to test.php?

2011-03-03 Thread Sam Bernard
Just edit your htaccess file to deny access or just ad a simple header() redirect in test.php if debug is 0. -- 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

Implementing social networking using CakePHP

2011-03-03 Thread Sam Bernard
http://book.cakephp.org/ As to the benefits/drawbacks. of Cakephp- do a web search... it has been exhaustively covered. -- 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

Re: User accounts to restrict specific features

2011-03-03 Thread Sam Bernard
Your application sounds simple enough that you may not need ACL- however, you may find ACL useful if you expand your app to have different permission levels for different groups. Take a look at Croogo CMS- it has the most intuitive, easy to use implementation of ACL in Cakephp that I've seen.

Re: On the road to Da Vinci 2.0

2011-03-03 Thread Sam Bernard
Me as well... I you would like to read the continuing saga of Alexander Sergeyev, the Symfony developers(bless their hearts) have tried to make sense of his inane ramblings: https://groups.google.com/forum/#!topic/symfony-devs/vVh6IxWEJng -- Our newest site for the community: CakePHP Video

Re: 406 Not Acceptable error on cake.generic.css

2011-03-02 Thread Sam Sherlock
what server is this installed on? the display of the home ctp file works ok? (not styled) try domain.com/app/pages/home - this should display the same home.ctp I have feeling that this issue might have something to do with MIME types on the server due to the dot in the filename

Re: 406 Not Acceptable error on cake.generic.css

2011-03-02 Thread Sam Sherlock
406. I'll have a look at core.php to see if I can spot anything but being a newbie I highly suspect nothing will jump out! On Mar 2, 3:25 pm, Sam Sherlock sam.sherl...@gmail.com wrote: what server is this installed on? the display of the home ctp file works ok? (not styled) try

Re: use alternative view folder?

2011-03-02 Thread Sam Sherlock
How much do these views need to vary? can't you handle these differences with po/pot files? sounds more the way this should be done you could switch layout in the view or app beforerender and use some styling to present differences - S On 2 March 2011 15:10, K3 kiril.zvezdako...@gmail.com

Re: On the road to Da Vinci 2.0

2011-03-02 Thread Sam Bernard
It's a spam post- do a google searchb on the title... its been posted everywhere. -- 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

Re: On the road to Da Vinci 2.0

2011-03-02 Thread Sam Bernard
This guy just emailed me pissed that he got banned... he accused us of being ignorant patricians oppressing the brilliant ideas of uppity plebes pride much? On Mar 2, 4:56 pm, Sam Bernard sambern...@gmail.com wrote: It's a spam post- do a google searchb on the title... its been posted

Re: Admin Route or Admin Password

2011-02-26 Thread Sam Sherlock
also see the book.cakephp.org http://book.cakephp.org/view/1254/Change-Hash-Function - S On 26 February 2011 19:53, amarradi radis...@googlemail.com wrote: i added an password from login into the mysql db and now i'm ready for login But where i set the hashing algorithm i dont know On

Re: Fat Models vs. App Controller

2011-02-26 Thread Sam Sherlock
to me it sounds list behaviours all controllers extend the app controller - choose carefully what you put here if the stuff is entity related it goes in model you can add to app model ( helper error also) in the same way as you can with app controller fat models, skinny controllers and

Re: Fat Models vs. App Controller

2011-02-26 Thread Sam Sherlock
everything over to my model, via either an available function I can then call from other controllers or place the function in beforeSave, afterSave, etc. Should work great. Eric On Feb 26, 5:59 pm, Sam Sherlock sam.sherl...@gmail.com wrote: to me it sounds list behaviours all

Re: requestAction question

2011-02-24 Thread Sam Sherlock
Andy Gale mentions that requestAction was not an option for use in a large scale site (in video on the tv site) http://mark-story.com/posts/view/reducing-requestaction-use-in-your-cakephp-sites-with-fat-models this article by teknoid is about menu specifically - I just found it bookmarked it

Re: media view

2011-02-22 Thread Sam Sherlock
check that you have no errors hidden away (you need debug to be off for media views to work) - this can be a cause of media views not working also check that $this-webroot . 'files' . DS is what you expect and that the pdf is there - S On 22 February 2011 13:55, a17s

Re: XML Helper Documentation needed

2011-02-18 Thread Sam Sherlock
Here I have adjusted NCM's code as it did not use the File class and was outputting the generated xml to the file twice (one after the other) also I have amended to have a id which is Stephen22 $xmlData = array( 'person' = array( 'id' = 'Stephen22', 'name' =

Re: move to new server

2011-02-15 Thread Sam Sherlock
it skips index.php on the root and came to webroot/ index.php that should be fine; I assume that you have seen cake working on the live server before - S On 15 February 2011 20:53, cake-learner sh.koiz...@gmail.com wrote: It seems that it skips index.php on the root and came to

Re: move to new server

2011-02-15 Thread Sam Sherlock
is the path to cake core correct Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php - S On 15 February 2011 21:03, cake-learner sh.koiz...@gmail.com wrote: Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php -- Our newest site for the community:

Re: INVITATION TO JOB FAIR

2011-02-15 Thread Sam Sherlock
spamor worse a scam to get personal details send your resume - S On 15 February 2011 21:08, bdwilton bdwil...@gmail.com wrote: Looks like spam to me. Either that or AMA should have the clown that wrote the email's job up for replacement at the same fair. On 16/02/2011 9:30 a.m.,

Re: move to new server

2011-02-15 Thread Sam Sherlock
Sorry I meant have you seen cake working on the server your moving to? - S On 15 February 2011 21:07, cake-learner sh.koiz...@gmail.com wrote: yes it worked on another server, but having the problem after moving files to another server. -- Our newest site for the community: CakePHP

Re: move to new server

2011-02-15 Thread Sam Sherlock
echo ROOT; as Miss Yeh is saying another set of wierd issues after fixing the first thing echo br; echo dirname(dirname(__FILE__)); echo br; echo CAKE_CORE_INCLUDE_PATH; the first 2 should be same; please decribe you dir structure? I assume the answer to Miss Yeh question is that the

Re: move to new server

2011-02-15 Thread Sam Sherlock
your getting a blank page with debug set to 2? have you got access to error logs - S On 15 February 2011 21:33, cake-learner sh.koiz...@gmail.com wrote: I debug and removed all errors, but now it doesn't show any thing but a blank page. ?php /* SVN FILE: $Id$ */ /** * Short

Re: move to new server

2011-02-15 Thread Sam Sherlock
wow! and you have the libs/ dir in cake/ are you certain that the files transfered correctly? did you make the app that was working on previous server? - S On 15 February 2011 21:59, cake-learner sh.koiz...@gmail.com wrote: After setting debug to 2, Fatal error: Class 'Router' not

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
Permissions control what processes have permission to read,write and execute directories and files within them most ftp programs let you set them (for files or folders by right clicking) this may help you http://permissions-calculator.org/ 777 should get it working but you'll want something

Re: move to new server

2011-02-15 Thread Sam Sherlock
try reuploading the htaccess some servers require rewrite base (you would need to add subdirectory to it if in a subdir and using rewritebase) try using fresh htaccess files - S On 15 February 2011 22:38, cake-learner sh.koiz...@gmail.com wrote: yes seems like all files are there. I see

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
if your exp is with GUI - S On 15 February 2011 22:35, Romel Emperado romelemper...@gmail.com wrote: oh thanks I understand but what directory in cake php I should revise the permission? sorry its my first time in cakephp and in linux ;( On Tue, Feb 15, 2011 at 5:23 PM, Sam Sherlock

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
, 2011 at 6:50 AM, Sam Sherlock sam.sherl...@gmail.comwrote: tmp and everything within it for more info http://book.cakephp.org/comments/31 sorry its my first time in cakephp and in linux ;( no trouble I figured that; which is why a suggested to use ftp program (filezilla is a great option

Re: views = 1234... numbers

2011-02-11 Thread Sam Sherlock
FWIW the suggestions made by Ryan Jeremy are better than using the Model Query method as you lose out on the cake auto magic with the method $this-Video-doIncrement($id); vs $this-Video-query('UPDATE fociki_videos' . ' SET views = views + 1' . ' WHERE id = ' . $video['Video']['id']); this

Re: SWF Uploader ... or any Good One...?

2011-02-11 Thread Sam Sherlock
check CakePHP Video Tutorials http://tv.cakephp.org for info on meio - not sure if it does progress bar moxiecode (makers of tiny mce) make a uploader that has html5 option that has progress bar -- you have to build it with ant https://*github*.com/*moxiecode*/*plupload * - S On 11

Re: Howto forward data in action

2011-02-10 Thread Sam Sherlock
everyone. On Feb 9, 2:30 pm, Sam Sherlock sam.sherl...@gmail.com wrote: This is the second time you have asked this question. Like the first time the question is lacking information, required to give you an informative answer you are better off describing what you are trying to do

Re: Howto forward data in action

2011-02-10 Thread Sam Sherlock
' = 'previewpost', $this-Post-id)); } else { $this-Session-setFlash(__('The post could not be saved. Please, try again.', true)); } - S On 10 February 2011 09:36, Sam Sherlock sam.sherl...@gmail.com wrote: I would have a field

Re: Birth certificate

2011-02-10 Thread Sam Sherlock
Andrew Perkins has a tutorial on the auth comp you can adapt his instructions to meet your needs I think you would need to write your own validation for birthcertificate his trilogy on auth does cover this in that it mentions custom validation I think your needs for generating a document are

Re: How to inherit / extend a content class

2011-02-10 Thread Sam Sherlock
what functionality does the content class give the classes that extend it? I think you want to have these reusable parts within a component and use behaviours on the corresponding models but you can read Neil Crook's answer here

Re: jqgrid?

2011-02-10 Thread Sam Sherlock
lots of results in google search for jqgrid and cakephp http://lmgtfy.com/?q=jqgrid+cakephp then after you have tried it and run up against a wall ask a more secific question then. - S On 10 February 2011 17:10, cake-learner sh.koiz...@gmail.com wrote: Has anyone try to integrate cakephp

Re: Is there any way to display error when working on ajax request?

2011-02-10 Thread Sam Sherlock
I use one of the following 1) Firephp. http://www.firephp.org 2) What Krissy said 3) sticking vars in an array and using json_encode(compact('hasThisThingSucceeded', 'isTheFlagFlying')); so if you project is handling the reponse and looking for content I would compact a set of vars to the var

Re: Howto forward data in action

2011-02-09 Thread Sam Sherlock
This is the second time you have asked this question. Like the first time the question is lacking information, required to give you an informative answer you are better off describing what you are trying to do and providing info on what you have tried (with code samples) this way others can

Re: Bake

2011-02-07 Thread Sam Sherlock
Are you getting any error messages at all is it working correctly via http? - S 2011/2/7 alexsandro andre miojoa...@gmail.com Boa tarde pessoal! tava lendo essa seção do bake http://book.cakephp.org/pt/view/1522/Gera%C3%A7%C3%A3o-de-c%C3%B3digo-com-o-Bake mas não consigo chegar

Re: how to call a recursion in cakephp view

2011-02-07 Thread Sam Sherlock
So you plan to call request action recursivley from within an element that calls itself to me that sounds like the wrong way to do it for many reasons google mptt data - S On 7 February 2011 13:38, indra indrajit.lahir...@gmail.com wrote: I have categories table with

Re: Bake

2011-02-07 Thread Sam Sherlock
Try - its a video by Gwoo (its on tv.cakephp.org but appears to be deleted) http://www.youtube.com/watch?v=21Rt9HgITig - S On 7 February 2011 20:15, oscar aguilar morales oscar_9...@hotmail.comwrote: Ok. if u are working on u machine u need to add a global variable to the system , i

Re: Book format change

2011-02-06 Thread Sam Sherlock
As Cricket says post this info to lighthouse cakebook project add all the information you can about the issue. Screenshot should help you can upload files with the ticket and you can open a lighthouse account with openid if you like. Iceweasel is possibly a more unique browser (perhaps you could

Re: Great Job on The Cookbook

2011-02-05 Thread Sam Sherlock
, but is there a way to download the cakebook application? or to grab the whole thing as a pdf? On Thu, 2011-02-03 at 20:11 +, Sam Sherlock wrote: Its refreashing and I am very much in favour of it Its got nice function tweaks; I like the colors the main improvement I see is that its much

Re: Great Job on The Cookbook

2011-02-05 Thread Sam Sherlock
pre.code is replaced with a of list of lines of code (wrapped in ol.code) this works for me desktop and phone too if your not seeing things in correct formatting then you could/should open a ticket on cakebook project at lighthouse

Re: Forum Is A Free For All?

2011-02-04 Thread Sam Sherlock
People should be encouraged to be self sufficient learners Asking the entire group a question that has been asked many times before suggests that the poster expects others to provide answers and even code back in 2005/2006 the list was quite different towards that mentality eg I wanna use ajax

Re: Great Job on The Cookbook

2011-02-03 Thread Sam Sherlock
Its refreashing and I am very much in favour of it Its got nice function tweaks; I like the colors the main improvement I see is that its much easier and faster to move between documentation trees for each version previously this was a major PIA and now you goto 1.3 straightaway looks like

Re: Understanding the M in MVC?

2011-02-03 Thread Sam Sherlock
M = Model Interaction with data stored in a database or via a datasource (eg the twitter example) Dropping assocs on the fly is easier than building them on the fly You set the associations as they would generally be needed between models within your app Your setting you app up to be able to

Re: Newbie file upload question

2011-01-31 Thread Sam Sherlock
If your getting started with file uploads looking at existing code could help you get started - otherwise you should ask a more specific question :) its simple so long as you don't use swfupload; here are some links

Re: $html-image no show

2011-01-31 Thread Sam Sherlock
I had cake working in a windwow 2k dir ages ago but twice on xp and currently windows 7 users dir cake just does not work for me when I nearly had it once paths to images would be tricky so sticking with vhosts :) - S On 1 February 2011 02:11, cricket zijn.digi...@gmail.com wrote: On

Re: Configuration

2011-01-30 Thread Sam Sherlock
Nick Baker aka WebtechNick has a settings plugin you can also add settings from with app/config/bootstrap.php $imageSettings = array(); $imageSettings['thumb'] = array(125, 200); $imageSettings['large'] = array(400, 600); Configure::write('Site.images', $imageSettings); then elsewhere

Re: Helper File

2011-01-29 Thread Sam Sherlock
echo $html-tableHeaders (array_keys($knownusers[0] ['User'])); is that line 3 On 29/01/2011, newguy aimanparv...@gmail.com wrote: hey Sam I made the change but still I get teh following error: Notice (8): Undefined property: View::$Html [APP/views/users/ knownusers.ctp, line 3] Fatal

Re: Helper File

2011-01-29 Thread Sam Sherlock
of the view file (ctp) app/users/knowusers.ctp On 29/01/2011, Sam Sherlock sam.sherl...@gmail.com wrote: echo $html-tableHeaders (array_keys($knownusers[0] ['User'])); is that line 3 On 29/01/2011, newguy aimanparv...@gmail.com wrote: hey Sam I made the change but still I get teh

Re: Helper File

2011-01-29 Thread Sam Sherlock
strange. Looks fine and you have not edited the core at all? Maybe I am missing something. On 29/01/2011, newguy aimanparv...@gmail.com wrote: yes thats line 3 On Jan 29, 12:15 am, Sam Sherlock sam.sherl...@gmail.com wrote: echo $html-tableHeaders (array_keys($knownusers[0] ['User

Re: Helper File

2011-01-29 Thread Sam Sherlock
/01/2011, newguy aimanparv...@gmail.com wrote: No as I said am new here I am following this tutorial: http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/section4.html this page is where helpers were introduced. Thanks On Jan 29, 12:27 am, Sam Sherlock sam.sherl...@gmail.com

Re: Helper File

2011-01-29 Thread Sam Sherlock
no trouble - hope you work it out. You have read the book.cakephp.org On 29/01/2011, newguy aimanparv...@gmail.com wrote: yeah may be, anyways thanks for your efforts :) On Jan 29, 12:48 am, Sam Sherlock sam.sherl...@gmail.com wrote: It maybe out of date, in part. Editors note

Re: Helper File

2011-01-28 Thread Sam Sherlock
have you edited any files in the cake/ dir? On 29/01/2011, newguy aimanparv...@gmail.com wrote: I tried that but no change I still get the same error :( On Jan 28, 11:35 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Try replacing $html- with: echo $this-Html-...

Re: Helper File

2011-01-28 Thread Sam Sherlock
1.2.5 have you got HTML in a helper array you should have Html so that the camelcase convesion works out On 29/01/2011, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What version of Cake are you using? The Html helper is available out of the box. Have you declared any other

<    1   2   3   4   5   6   7   8   9   >