Re: Themed bootstrap

2013-01-23 Thread Sam Sherlock
// Read theme config files from Config directory from within selected theme Configure::config('theme', new PhpReader(APP . 'View' . DS . 'Themed' . DS . $this->theme . DS . 'Config')); // load config file from theme configs Configure::load('bootstrap', 'theme'); https://github.com/cakephp/docs/blo

Re: Help / Source code for Simple Authentication tutorial

2012-12-20 Thread Sam Sherlock
@OxfordRob where are the Controller Classes currently they (Users & App controllers) should be in app/Controller/ - S On 20 December 2012 20:03, OxfordRob wrote: > @cricket - thank you for that explanation of a several points. I made the > changes as you suggested but still no joy. > > Here

Re: Themed bootstrap

2012-10-17 Thread Sam Sherlock
Do you want a bootstrap.php within your theme like you have one in APP/Config/? Or are you using a php file to 'do more' with a request to a css file? I think perhaps croogo might be doing something akin to what your doing if you want per-theme config croogo 1.3 uses yaml & 1.4 uses json - S

Re: Shared Apps

2012-10-15 Thread Sam Sherlock
1 cake many apps http://book.cakephp.org/2.0/en/installation/advanced-installation.html - S On 15 October 2012 22:36, John Farrar wrote: > Does PHP Cake allow us to build shared apps like the plugin apps for > WordPress? > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us

Re: Cake2 - Bake - Windows

2012-09-05 Thread Sam Sherlock
edit the webroot/index.php & webroot/test.php files uncomment the line that defines the CAKE_CORE_INCLUDE_PATH mine looks like define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'share' . DS . 'cake' . DS . '2.0' . DS . 'lib'); baking places this comment in index.php and test.php within web

Re: $title_for_layout and what changes I need to do

2012-07-23 Thread Sam Sherlock
You using 2.x right? Don't worry about the yet as its 3.0 specific. - S On 15 Jul 2012 11:23, "Nvp" wrote: > Hi! > It's my first Cake project I have about 5-6 static pages they are served > by the default PagesController. > > I havein my layout file > and set('title_for_layout', 'Page Title'

Re: Nested Menu in Cake 2.x

2012-07-16 Thread Sam Sherlock
http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html - S On 16 July 2012 02:15, Ain Devonshire wrote: > yeah but i dont have letf and right fields on my database..can you put on > some links as my references? > > > On Friday, July 13, 2012 7:54:26 PM UTC+8, MaJerle.Eu wrote: >>

Re: Login Forms

2012-07-13 Thread Sam Sherlock
get the login working within the users controller have auth set in app controller - set login redirecto to pages display home include the login for in home.ctp via an elemet (the form points to users login) also pages does have a controller its just does not use a model (add parent::beforeFilter

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread Sam Sherlock
Your email cfg is incorrect with your app - see Config/email.php - S On 9 Jul 2012 23:45, "mk" wrote: > yes, sorry typo. it is configure::write in my code. The Error simply > states > "Could not send email. > > *Error: * An Internal Error Has Occurred." > > I'm running this from localhost and ma

Re: TinyMCE for CakePHP help

2012-07-07 Thread Sam Sherlock
Use the 2.0 branch. - S On 7 Jul 2012 20:41, "David Lozzi" wrote: > Thanks, that seem to move me one step closer. Now I get error > > Create the class *TinyMceHelper* below in file: > C:\xampp\htdocs\insight\app\Plugin\TinyMCE\View\Helper\TinyMceHelper.php > > When I look in the plugin folder, I

Re: User Management Plugin Cakephp 2

2012-05-10 Thread Sam Sherlock
extending the Users plugin into your App makes it easy to customise the the plugins functionality and then you can add acl and stuff. - S On 10 May 2012 05:06, Steven Scaffidi wrote: > Thank you for the advice. I honestly just want to see how they do the > email confirmation, lost passwords

Re: SEO/Meta Data Helper

2012-04-09 Thread Sam Sherlock
more automatically with callbacks - so that vars are ready set for the helper to automatically set the meta data to the meta block then you could have no code added to view templates unless you want to add more specific stuff at that point http://book.cakephp.org/1.3/view/996/Creating-Components i

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread Sam Sherlock
in controller I setup the data for menus $main = array( array( 'title' => 'Home', 'url' => '/', ), array( 'title' => 'About', 'url' => '/about', ), array(

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-29 Thread Sam Sherlock
I am using it with 2.1/2.2, I have not made any changes to the setup of the plugin within my app since 2.0 not loading it in bootstrap loadall @GoneShootin Are you getting any output in debugkit? - S On 29 March 2012 12:16, GoneShootin wrote: > Thomas > > Can you go through how you got

Re: Debugger Class not found - CakePHP 2.1 - PHP 5.4

2012-03-22 Thread Sam Sherlock
where did the code come from? is it from https://github.com/jadb/cakephp-markitup/blob/master/views/helpers/markitup.php and you ran the upgrade shell 2.0 has no javascript helper - if so the helper will need additional changes to make it work - S On 22 March 2012 23:34, traedamatic wrote

Re: custom route classes in 2.x?

2012-02-20 Thread Sam Sherlock
happy baking :) - S On 21 February 2012 02:03, lowpass wrote: > On Mon, Feb 20, 2012 at 8:57 PM, Sam Sherlock > wrote: > > > > in AppModel.php I have > > > > App::uses('Model', 'Model'); > > > > class AppModel extends Model {

Re: custom route classes in 2.x?

2012-02-20 Thread Sam Sherlock
I have my custom routes working fine in 2.x App::uses('PageSlugRoute', 'Route'); the class in Lib/Route App::uses('Article', 'Model'); App::uses('CakeRoute', 'Routing/Route'); class ArticleRoute extends CakeRoute { ... } in AppModel.php I have App::uses('Model', 'Model'); class AppModel exte

Re: Looking for CakePHP freelancer?

2012-02-17 Thread Sam Sherlock
On 17/02/2012 21:41, Baronne wrote: Hi, Is there a place where I can post a job or look for CakePHP developers for some work I need done on my site? thanks baronne get in touch with cakedc. http://cakedc.com/ githire.com may also be helpful -- Our newest site for the community: CakePHP Vide

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
whant can you help me in this, please? Thanks in advance with Regards kalai. On Feb 17, 3:30 pm, Sam Sherlock wrote: @kalai you need to check that $this->data is not empty when adding a building been a while since I used 1.3 but I just baked a project after updating my base of 1.3 I p

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
@kalai you need to check that $this->data is not empty when adding a building been a while since I used 1.3 but I just baked a project after updating my base of 1.3 I put you code in first without validation in the model (my view were baked too) I have not trouble editing buildings or addin

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
You need to show your code Sounds like your missing parts of an if-statement in the edit action - S On 17 Feb 2012 17:59, "kalai" wrote: > HI to all, > I am a beginner in CakePHP. > I would like like to get help in my coding. > i am currently creating a directory using CakePHP. > the problem i

Re: Strange Routing Behaviour in CakePHP 2.1 Beta

2012-02-16 Thread Sam Sherlock
Spaces are bad in paths avoid them The book had a migration guide. Your app *needs* app controller, model, shell Apart from your app needing the above, if it does not have them, it should work fine. Parts could be tuned for 2.1 eg blocks, events... - S On 17 Feb 2012 05:55, "ProFire" wrote: >

Re: Suggestion

2012-02-14 Thread Sam Sherlock
On 14/02/2012 17:54, Glauco wrote: Hi, I dont know if Cake core team has thinking about it, but I think that would be a great funcionality to add "partials" to next releases (as RoR). I have seen the helper "partials" created by joeytrapp (https://github.com/joeytrapp/partials/tree/master/View/He

Re: How to embebedd flash menu buttons on my site?

2012-02-14 Thread Sam Sherlock
Seo is less of a concern with flash. If you need to Target mobile devices then requiring flash is bad. If your having issue loading xml/images/content into flash look at setting the base param with $this->Html->url('/'); - S On 14 Feb 2012 09:38, "phpMagpie" wrote: > When you say flash menu bu

Re: How to embebedd flash menu buttons on my site?

2012-02-12 Thread Sam Sherlock
Once you understand how to src files in webroot all you need to is place the file and ref with you object/embed mark up. Use firebug or such to check that files are found. Unless your using cake internal routing webroot/ should not be part of the url. - S On 12 Feb 2012 21:52, "Devis" wrote:

Re: error en shelldispacher.php when i want to execute the cake bake

2012-02-12 Thread Sam Sherlock
what version of php have you got available. note that cake requires php 5.2.8+ (this was upped recently) also if you have set a specific version for php from you server the cli will need to be set differently. $> php -v if the version you running is less than the required (I think you have 4 by

Re: Ignoring Prefix Routing

2012-02-10 Thread Sam Sherlock
Use a custom component - S On 10 Feb 2012 11:28, "Sam Delaney" wrote: > Hi, > > I have multiple routing prefix routes setup and in general it has worked > really well to cater for discrete types of users. However there are a few > instances where the actions and views are identical regardless of

Re: Initialize Baking Issue For Newb

2012-02-06 Thread Sam Sherlock
Yes you can - you need to add lib/Cake/Console to you ensironment path (see the screencast by GWoo) http://book.cakephp.org/2.0/en/installation/advanced-installation.html http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html?highlight=bake - S On 6 February 2012 23:

Re: 2.1 Console: Class 'AppShell' not found

2012-02-05 Thread Sam Sherlock
error on 'cake bake' > > > > So please, what wrong with me? > > > > On 5 Feb., 02:26, Sam Sherlock wrote: > > > > > > > > > > > > > > > > > remove the copy from the cake lib > > > place it in your app >

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread Sam Sherlock
remove the copy from the cake lib place it in your app mine looks like this https://github.com/cakephp/cakephp/blob/2.1/app/Console/Command/AppShell.php notice `App::uses('Shell', 'Console');` for me on its working as the book informs - S On 4 February 2012 20:59, heohni wrote: > sorry: > >

Re: Cake 2.1 Events:

2012-01-30 Thread Sam Sherlock
Listeners configured somewhere else, maybe a config file a comment from code block on cake event doc page I was thinking that the events are set much like custom error handling http://book.cakephp.org/2.0/en/development/errors.html - S On 30 January 2012 20:32, phpMagpie wrote: > Book: h

Re: ACL manager plugin

2012-01-30 Thread Sam Sherlock
See alaxos acl plugin - S On 30 Jan 2012 03:47, "Justin Edwards" wrote: > Hello all! > > I am currently managing ACL by hand, and have seen a couple of projects > that do some ACL management (croogo and quickapps I believe). I am > developing a framework for all of my SaaS cakephp applications

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Sam Sherlock
> > This is a bug on Core/App.php, caused by a missing `Plugin` key on the > > > paths array on `file_map` cache. > > > To fix it, just find this line on App.php (line 547): > > > self::_map($file, $className); > > > and replace for this one: > > > sel

Re: CakeRoute

2012-01-26 Thread Sam Sherlock
Jose Diaz-Gonzalez has some code on github that may help here you'll have to adjust/play a domain redirect comp - set up a model domain_prefixes https://gist.github.com/1498851 Static Page Route plugin (has 1.3/2.x branches) - you'll have to create something very bespoke but this will help you co

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Sam Sherlock
if that matters). Do you think > the copying could be the problem anyway? > > /Eric > > On Jan 26, 2:34 pm, Sam Sherlock wrote: > > Odd. Have you tried setting up advanced setup with cake baked projects? > > > > Also is foo a copy of bar? > > > > - S >

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Sam Sherlock
Odd. Have you tried setting up advanced setup with cake baked projects? Also is foo a copy of bar? - S On 26 Jan 2012 13:14, "Jon Price" wrote: > Interesting..I've seen this as well but rareand thought I had > misconfigured something. They are 2.0.x installs on a debian style linux. > > On

Re: Cakephp fails on xampp - cakecontroller could not be found

2012-01-25 Thread Sam Sherlock
Cake might be a bad name for a controller. Your controller has no action method Perhaps add: public function index() {} and put a index.ctp in View/Cake/ Also CakeController.php should be the filename (that casing) - S On 25 Jan 2012 23:18, "jkrug_98" wrote: > Hi, I'm a newbee to PHP and xam

Re: File Upload Plugins

2012-01-25 Thread Sam Sherlock
Yep I agree the media plugin is amazing and vast (not for all because of that) assuming your using cake 2.0 I would not use the media plugin I just had a short play with Miles J uploadeder (copyied the example from inside the plugin into a test app) the files the uploader moves to WEBROOT/files al

Re: Including JQuery

2012-01-24 Thread Sam Sherlock
thats correct "If you do not declare a specific engine, the jQuery engine will be used as the default." from the Book - S On 24 January 2012 16:54, Daniel wrote: > Even just this worked for me: > public $helpers = array('Js'); > > Correct me if I am wrong, but I think it defaults to Jquery.

Re: Saving relationships

2012-01-23 Thread Sam Sherlock
your relations are in the controller - they should be in the model you don't need to loadModel follower as User hasMany followers - S On 22 January 2012 16:20, J. wrote: > I'm making a follower system ala Twitter. > > Here is my UsersController : > > > class UsersController extends AppContr

Re: cakephp first step

2012-01-21 Thread Sam Sherlock
have you read the blog tutorial of the book it is available in various languages http://book.cakephp.org/2.0/ - S On 20 January 2012 16:35, marcogo wrote: > thanks a lot > but where i have to use this instructions? > > thanks again > > On 20 Gen, 16:23, Tilen Majerle wrote: > > create one c

Re: Cakephp 2.0 cPanel and Shell

2012-01-21 Thread Sam Sherlock
not sure if your running what you think your running cake test runs the core test shell whereas you have a test task; as far as I know tasks are run by shells and you should call a command of a shell which in turn calls a task for more info read the example there is helloword http://book.cakephp

Re: Including queried information in default layout

2012-01-20 Thread Sam Sherlock
reating components (http:// > book.cakephp.org/2.0/en/controllers/components.html) is a whopping 4 > lines long. The part from the 1.3 book (http://book.cakephp.org/1.3/ > view/996/Creating-Components) has a section on calling models from > components, but I'm too new at Cake to kn

Re: Including queried information in default layout

2012-01-20 Thread Sam Sherlock
Is the load model call the line with the error? Can you post more code? The component idea should be fine. More details of your bab/menu model would be good. - S On 20 Jan 2012 16:13, "Dave D" wrote: > I'm looking to create a site where I can have a navigation list on one > side of each page

Re: Cake bake command giving error in ubuntu 11.10

2012-01-18 Thread Sam Sherlock
You have a comment in the conf file mentioned, that uses # which is depreciated. You have an old version of cake installed, via apt get. You should remove it and install either 1.3 or 2.0 - S On 18 Jan 2012 09:06, "adarsh snehajan" wrote: > hi, > > When I giving bake command in ubuntu i am get

Re: Problem with TinyMCE

2012-01-18 Thread Sam Sherlock
I thought that shorttags could be ini_set. Perhaps in bootstrap.php - S On 17 Jan 2012 11:45, "LipeDjow" wrote: > Hi AD7six, > > I have the same problem, using CakePHP and TinyMCE Plugin. > > I saw here ( > http://groups.google.com/group/cake-php/browse_thread/thread/e0b7196b7c00288/578c9d67a6b

Re: Problem with Paginate (Cake 2.0.5)

2012-01-13 Thread Sam Sherlock
Is the news action diff from index? I think you may need to set some props of the paginator helper. - S On 13 Jan 2012 07:45, "Chooch Schubert" wrote: > I have followed the 2.0 book to add pagination to a controller/view. I > get the paginate controls and they are rendering correctly (they > *t

Re: Installation problem with newly baked app

2012-01-12 Thread Sam Sherlock
Open index.php and test.php in webroot. A line which includes lib/Cake is commented out - uncomment it. - S On 13 Jan 2012 07:46, "Russ" wrote: > Hi Daniel, > > I haven't used WAMP to setup, but I do have Cake 2.0 installed on a > Windows 7 machine. (as well as Linux and Vista). > > One thing t

Re: Cake 2: Very confusing docs/tutorials... Is there another foolproof source?

2012-01-12 Thread Sam Sherlock
who has contributed (I hope I can too in the future), but I have > definitely struggled to do some things the cake way vs the way I did things > before using other languages and frameworks. > > On Thu, Jan 12, 2012 at 9:33 PM, Sam Sherlock wrote: > >> the 2.0 section of book notes whi

Re: Cake 2: Very confusing docs/tutorials... Is there another foolproof source?

2012-01-12 Thread Sam Sherlock
the 2.0 section of book notes which features are 2.1 specific what is phased out too - S On 13 January 2012 02:19, 100rk wrote: > > - the $this->fetch('content') line is in the 2.0 docs? > http://book.cakephp.org/2.0/en/views.html#view-layouts > > Probably some mistake (book.cakephp.org upda

Re: Error Handler (Email not exist)

2012-01-08 Thread Sam Sherlock
Handle bounces http://stackoverflow.com/questions/3139559/processing-an-email-bounce-back-in-cakephp-and-postfix - S On 7 Jan 2012 10:27, "majna" wrote: > I'm not sure wat are you doing, maybe > > try { > ..send email > } catch (SocketException $

Re: CakeEmail with dynamic templates

2012-01-08 Thread Sam Sherlock
http://bin.cakephp.org/ Or github gist. - S On 8 Jan 2012 20:42, "Thaissa Mendes" wrote: > Hi, > > Not sure if it's the best approach, but when I did that I built a > component, who was calling the DB record, replacing the strings, set to a > default template, and sending the email. > > I can p

Re: CakePHP and a normalized database

2011-12-31 Thread Sam Sherlock
if you read book.cakephp.org find answers to these questions and more. see the blog tutorial but start reading from the beginning On 31 December 2011 18:03, lcano wrote: > Clint,Thanks a lot! Your code worked and now I am able to retrieve > information from different tables within the User mo

Re: Cake is NOT able to connect to the database.

2011-12-31 Thread Sam Sherlock
because this is blank 'database' => '', what is the name of the mysql database your connecting to? mysql -u testuser -p123456 -h localhost mysql>CREATE DATABASE cake_testing; mysql>exit; then use 'database' => 'cake_testing', -- Our newest site for the community: CakePHP Video Tutorials ht

Re: Ajaxing a $this->Item->find('all') - twitter style.

2011-12-28 Thread Sam Sherlock
You can set your controller to detect ajax requests you can then set the layout to use the ajax layout. This outputs the $content_for_layout var only (not like default.ctp which has html head, body) Request & response objects and request handler are things to look at - S On 28 Dec 2011 12:20, "J

Re: Paginate an array

2011-12-28 Thread Sam Sherlock
You need to add ); to the end of the line where you call $this->paginate() In php lines end in semi-colons You'll find it helpful if you can setup an editor that matches braces and brackets, code hinting & code completion Many editors have such features - Google to get the info. - S On 28 Dec 20

Re: CakeSession problem

2011-12-24 Thread Sam Sherlock
You can add a line to htaccess to change version. Suspect you'll have mod rewrite issues after that. You can point the domain direct to the webroot of cake app. I guess you will also need to adjust Console/cake to get php 5.2.6+ on the command line too. On another server I have done the above an

Re: Ubersimple auth system... any idea?

2011-12-23 Thread Sam Sherlock
also http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/ simple & fast - S On 23 December 2011 19:38, Timothy O'Reilly wrote: > Doh! Forgot the link --> > http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ > > > > On Fri, Dec 23, 201

Re: editing user data when password doesn't change

2011-12-22 Thread Sam Sherlock
Intercept the password in beforeFilter - S On 22 Dec 2011 02:08, "elogic" wrote: > Hi All, > > I am using Auth and I have an edit user details page, the password is > coming though hashed into the password field, if the user doesn't > change the password, the hashed password get re-hashed and th

Re: Removing "On behalf of" from the Email From field Cakephp 1.3

2011-12-22 Thread Sam Sherlock
In dir named View that lives within your app exists other dirs. Email has a layout (2 html & text) Likewise you'll find email has template for the body too. How you setup your email for your app is up to you play with the options to see what works best for you. - S On 22 Dec 2011 05:43, "hunny"

Re: Questions about the field modified, created, updated

2011-12-22 Thread Sam Sherlock
Updated or modified which you use is upto you When you follow the conventions cake automagically does some stuff. Whilst still remaining flexible. - S On 22 Dec 2011 08:31, "socrates" wrote: > Hello, here i am with a new question, someone could explain me how > this fields works? > This is how

Re: Choosing cakephp version

2011-12-22 Thread Sam Sherlock
It should not take too long to read up on the differences described in the book. Maybe this is a wild idea but try reading the migration guide. Try migrating a project to cake. - S On 22 Dec 2011 09:15, "Kiran Ambati" wrote: > Hi Jeremy, > > Thanks for your reply. > > As i got enough experienc

Re: $this->Auth->Allow('*') and scaffold problem

2011-12-21 Thread Sam Sherlock
Acl and scaffold don't play nice. Comment that comp for now add it later - S On 21 Dec 2011 12:47, "gloop" wrote: > Hello everybody, > > i cant believe it. I solved my last problem with Scaffold and now ive > a new one. > > I add in my AppController an Auth and allow it to all my functions: > c

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread Sam Sherlock
with cakes defualt upgrade shell I have been able to cd to the plugin and then run upgrade (for me I run the subcommands one at a time as I have a plugin that won't be found and it will fail at helpers -- I suspect that this won't be the case for you but if you have issues run them 1by1) with Mar

Re: 404 error

2011-12-18 Thread Sam Sherlock
The book has some notes on some setups needing htaccess needing extra bits added and other amendments - rewrite base might be part of the solution. Search the group for htaccess as this comes up often others have posted what worked for them already. - S On 18 Dec 2011 12:21, "Surit" wrote: > La

Re: Controllers, Layout & Views

2011-12-16 Thread Sam Sherlock
x27;Reilly" < timothy.john.orei...@gmail.com> wrote: > Sam, > Newb - so playing and doing dumb things!! > Thanks, > Tim > > On Fri, Dec 16, 2011 at 3:11 PM, Sam Sherlock wrote: > >> Why make another controller to handle static content? Perhaps you playing >

Re: Controllers, Layout & Views

2011-12-16 Thread Sam Sherlock
Why make another controller to handle static content? Perhaps you playing with cake to learn and stuff... Just for me having entire controller to handle about content seems shit odd - perhaps making a dynamic pages controller is a better idea if you need db content otherwise use the pages controll

Re: Is there a way to run cakephp on Server2Go?

2011-12-10 Thread Sam Sherlock
Mod rewrite won't affect db connection. Check again that your server has requirements - 2.0 is diff from 1.3 - S On 10 Dec 2011 16:36, "zephyr7" wrote: > I've been trying (without success) to run CakePHP 2.0 on a portable > Server2Go server. > > For some reason, I can't connect to the DB. > > I

Re: How to use AuthComponent to authorize using a password only rather than username/password?

2011-12-07 Thread Sam Sherlock
do you want users to only use passcode to login instead of user/pass combo If so I think this is not possible using auth as is, and if this can be done you'd have to customise Auth by extending BaseAuthenticate although I think Auth is geared towards user/pass for logging in users if you wante

Re: Is it possible to access AuthComponent from a Helper ?

2011-12-02 Thread Sam Sherlock
I found an acl tutorial that has an access helper and comp. The access helper checks acl permissions before outputing links. All works fairly well, though I do have reservations about the way it crosses the view and controller streams This is the link http://net.tutsplus.com/tutorials/php/how-to

Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread Sam Sherlock
true but that being the case has other benefits too. and asset_compress has many options and you can customize it to your every whim *almost* On 30 November 2011 21:30, euromark wrote: > I only thing I am wondering about that plugin is, whether it supports > assert compression by using the de

Re: Vendor files from Plugin folder

2011-11-28 Thread Sam Sherlock
> > Is there a way to extend the plugin vendor pathes with App::build? So > > i add all my subfolders and your way should be fine. Currently i go > > this way... > > > > App::build(array('Vendor' => array(APP . 'Plugin' .

Re: Vendor files from Plugin folder

2011-11-27 Thread Sam Sherlock
App::uses('ClassName', 'PluginName.Vendor'); App::build will let you add additional paths for plugins etc. You don't need to use app build to be able to use classes from plugins. - S On 27 Nov 2011 17:55, "p r" wrote: > Hello, > > it would be a pleasure if somebody could help me. I try to load

Re: AuthComponent error only in a remote linux server

2011-11-26 Thread Sam Sherlock
Check that the files uploaded correctly. Clear the files from the tmp too. - S On 26 Nov 2011 17:17, "Andre Fuhrman" wrote: > Hi, > > I'm ending my first cake application but when a moved it to my remote > server a internal error happened. In my wamp local server, works > without issue. > > Thi

Re: Where to publish new plugin?

2011-11-24 Thread Sam Sherlock
http://cakepackages.com/ you could also consider submitting a article for bakery too - S On 24 November 2011 21:02, Roland wrote: > Hi! > > Is there any central place to announce a plugin I just write? > > cheers > Roland > > --- > banchaproject.org > Combining ExtJS and CakePHP > > -- >

Re: Cakebook crashes Flash on Chrome

2011-11-24 Thread Sam Sherlock
Chrome seems to be prone to crashing due to flash (seems to be various problems) many result in crashing. for me I get this alot in chrome - I can't recall it happening in firefox (if it does not on the same scale) http://www.google.com/support/forum/p/Chrome/thread?tid=13137185df92e1eb&hl=en As

Re: FireCake for normal html requests

2011-11-24 Thread Sam Sherlock
Try making a __contruct and calling parent::__construct with the correct vars - S On 24 Nov 2011 15:24, "wirtsi" wrote: > Hello, > > I'm using 2.0.3 and got Debugkit with FireCake working so far that I > get the FirePHP output on any ajax request, which is neat to start > with. Now I would like

Re: Bake generating error!

2011-11-23 Thread Sam Sherlock
and the submodule(s) within only the one so far as I see but git submodule update --init --recursive - S On 23 November 2011 10:08, Andras Kende wrote: > PHP Fatal error: Could not locate CakePHP core files.. > Since cake is a submodule in that repo You may need to something like > > git

Re: Installing a Cake app on OVH, with shared hosting

2011-11-18 Thread Sam Sherlock
I found that setting the root of domain to point direct to webroot and then setting rewritebase to / only editing the .htaccess in that directory to work well - S On 18 Nov 2011 15:58, "phpMagpie" wrote: > Actually, this covers it better: > http://book.cakephp.org/view/917/Apache-and-mod_rewrite

Re: Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-18 Thread Sam Sherlock
Specifically the plugin is camelcase the shell command is underscored - S On 18 Nov 2011 13:56, "elitalon" wrote: > Thanks. I didn't know I have to prefix 'Migrations' > > On Nov 16, 5:38 pm, Sam Sherlock wrote: > > if you have it installed in

Re: Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-16 Thread Sam Sherlock
if you have it installed in Plugin/Migrations ./Console/cake Migrations.migration if a plugin migration is not showing check that the casing of the plugins directories is camelcased - S On 16 November 2011 15:16, elitalon wrote: > Hi, > > Can anybody provide some guidance through installa

Re: Singular controller name route

2011-11-15 Thread Sam Sherlock
Perhaps using a custom class to collect data from the app. It could not rerun data unless it has a view action - S On 15 Nov 2011 18:43, "martinp" wrote: > Thanks for the reply Jeremy, but what I'm actually looking for is a > way to do this automatically. > > In the same way that routes configu

Re: How to paginate "subtable" in a view?

2011-11-13 Thread Sam Sherlock
Paginate returns results paginated. Find returns unpaginated data - S On 13 Nov 2011 16:51, "Daniel" wrote: > On Nov 13, 11:01 am, phpMagpie wrote: > > You can't paginate data you have fetched with $this->Model->find() you > > must use $this->paginate(). > > > > HTH, Paul. > > OK, here is what

Re: Having layout breaking because of a whitespace?

2011-11-13 Thread Sam Sherlock
Really this is a css question. Using cake as your front end is not the cause of the whitespace. Perhaps some css applied to the container is adding space. Either way your question is better suited to a list such as webstandardsgroup.org/mail/ - S On 13 Nov 2011 09:20, "heohni" wrote: > Well,

Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
So transfer the ownership of the domain and use the hosting you have purchased for another enterprise of your own. Why should your outlay for the hosting be covered by the sale of this domain? Consider the benefit you have gained from using cake. - S On 12 November 2011 00:51, Sandy wrote

Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
Ironic that hosting is on godaddy as cake fan problematic on those servers. The domain is of little value really, the hosting is of no value. As cake foundation could host it on existing servers. As for someone taking the package from you you should rethink perhaps partner with some other develop

Re: User profile tutorial

2011-11-10 Thread Sam Sherlock
Connect a route from /profiles/:slug to controller: Users action: View use a sluggable behavior if you follow tutorials available at book.cakephp.org you'll a few tutorials to get you going. You may also benefit from seeing the CakeDC plugins on github Users for example allows Account holders

Re: Help: how to use cakephp for subdomains

2011-11-06 Thread Sam Sherlock
Check to see if your server config is set correctly for the subdomain "Make sure that Overide is allowed and that AllowOverride is set to All *for the correct DocumentRoot*" from book.cakephp.org - S On 6 November 2011 08:54, Hamid Mamdoohi wrote: > I create subdomain for my site. > I us

Re: cake-sql-log in my layout

2011-11-05 Thread Sam Sherlock
element('sql_dump'); ?> but using the DebugKit plugin gives you more - S On 5 November 2011 16:50, Stefano wrote: > how i can show in my layout the executed queries? > > for example : > > /view/layout/my_layout.ctp > > > > > > > > > > > > > > -- > Our newest s

Re: How to get related username in view?

2011-11-04 Thread Sam Sherlock
perhaps you have a missing semicolon on within the code above this - S On 4 November 2011 17:08, Daniel wrote: >$categories = $this->find( >'all', >array( >'conditions' => > array('Category.catego

Re: How about using real HTML templates for Form input fields?

2011-11-03 Thread Sam Sherlock
So you'd get increased flexiblity (in markup control) but at what cost. additional overhead (an element for each form input) and having to make a range of elements for various differing situations or maybe I am missing the point - I am certain that you can do this without the need to call a Cake

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
The thread was titled Going back to school: acl - S On 1 Nov 2011 21:52, "Sam Sherlock" wrote: > Yep then you need acl > > I saw a recent thread discussing a work-around to avoid all the extra > methods views > > Does sound good. > > - S > On 1 Nov 2011 21

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
Yep then you need acl I saw a recent thread discussing a work-around to avoid all the extra methods views Does sound good. - S On 1 Nov 2011 21:44, "Nate" wrote: > So what if I have different levels of management? > > Super Administrators > Administrators > Managers > > > Managers have a set o

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
Thats what it is And you use admin_index methods distinct from index method. - S On 1 Nov 2011 21:25, "Nate" wrote: > So I'm reading over the Simple ACL tutorial provided in the > documentation. > > Right at the beginning, it says... > "Leave out admin routing for now, this is a complicated en

Re: what does this mean in cakephp core source code?

2011-10-19 Thread Sam Sherlock
Newly baked apps have a home.ctp file that displays some inital info. Not certain of the details in entirely but it display recent info. That home.ctp is something you change anyhow. - S On 19 Oct 2011 14:38, "Azrael" wrote: > Today before I connect to internet, I started my browser and go to

Re: Redesign my old website

2011-10-17 Thread Sam Sherlock
Also checkout croogo. Fahad gave a talk about this at cakefest - its an active cake cms. Better than using drupal which does take a lot of tuning (I agree with webedit points) Use cake maybe croogo. Cake has lots of plugins, cake apps are leaner than drupal sites initially - S On 17 Oct 2011 10

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-03 Thread Sam Sherlock
It could be that you have some whitepace after a php closing tag (does the cats controller have any whitespace before the opening of php - very first line) the debugkit plugin has a command to search for whitespace - S On 1 October 2011 21:30, Dragana Kuzmanovic wrote: > failure: > Warning

Re: Fat Model Skinny Controlller? Is this really correct?

2011-10-01 Thread Sam Sherlock
Yep that's a summary of my thoughts on fat models. I think a good example of this is cakedc users plugin - updated last night along with a other cakedc plugins. - S On 1 Oct 2011 14:46, "badben" wrote: > I'm certainly no expert but my understanding is that the placing as much > logic in the mod

Re: ckeditor+ckfinder config problem

2011-09-30 Thread Sam Sherlock
your possibly missing the webroot part within your ckeditor settings - S On 29 September 2011 05:31, ms_liz_87 wrote: > Anyone can help me..? I cant upload image using ckeditor. I already > install ckfinder with it. when i click on upload button, my path will > be missing. Anyone have any i

Re: uploading large file fails

2011-09-30 Thread Sam Sherlock
@miles for an interface for something like yousendit.com for users who are not techie enough for other options @aortizhi I think your issues with server limitations (outside of php) On 30 September 2011 18:14, Miles J wrote: > Why are you even uploading a 58MB file? > > On Sep 29, 1:21 pm, ao

  1   2   3   4   5   6   7   >