Re: skype links with html helper

2009-03-31 Thread Sam Sherlock
I think that using the html helper is unnecessary it is more complicated than simply echo '' . $username . ''; - S 2009/3/31 donnerbeil > > Hi, > > Does anyone know, if it is possible to generate a link like: > > skype:username?call > > with the html->link() method? > > > I tried this: > $h

Re: DebugKit's toolbar not working

2009-03-31 Thread Sam Sherlock
Try clearing the browsers cache - I think I to had this issue, just would show top right after clearing cache of ff it started. My projects all have jquery in them, but I believe that debugkit has contains everything it requires (loading jquery via google api - not conclusive on that I expect I'

Re: Why is it so hard to find answers on cakephp trouble?

2009-03-27 Thread Sam Sherlock
Affinity when you say right forum I disagree. Google Groups to which I am signed up some direct to my gmail account- this centralises amass of information for me - I agree nabble is rather awkward to view - google groups (browsing archives not in gmail) is not bad at all perhaps this is just taste

Re: default icon persists

2009-03-25 Thread Sam Sherlock
For me favicon changes take a while to update. If you have checked source then you should be good, you can check in another browser to see what happens when freshly viewing in a new browser. There are also a favicon generators out there so you can make your own google 'gen favicon' - S 2009/3/

Re: cache

2009-03-23 Thread Sam Sherlock
look in APP/tmp/cache/views/ expires being the point at which the cached file becomes stale - S 2009/3/24 computing1...@gmail.com > e expires is. I looked for man --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: How to create a product using CakePHP?

2009-03-07 Thread Sam Sherlock
you should make app_controller.php in you app dirctory. then to upgrade cake the user deletes and replaces the cake directory - aswell as clearing app/tmp/ of files (not folders) - S 2009/3/7 rpnu...@gmail.com : > sking is pretty simple (I hope). How do I release my product > using CakePHP? I

Re: Best way to organize CSS and JS

2009-03-06 Thread Sam Sherlock
you might be interested in cakebaker.42dh.com/2007/03/17/mvc-with-javascript/ www.javascriptmvc.com - S 2009/3/6 yogesh kumar : > > use css and javascript in layout  default.php > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Custom url's

2009-03-04 Thread Sam Sherlock
have a look at http://bakery.cakephp.org/articles/view/sluggable-behavior 2009/3/5 park > > You either define a '/fields/view/science' route (hard coded) in /app/ > config/route.php, > Or pass 'science' as an argument an do a query in db. > > On Mar 5, 8:23 am, MaNuM wrote: > > Hi everybody. I

Re: Admin login and user login without ACL

2009-02-27 Thread Sam Sherlock
Have a look at this tutorial http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited 2009/2/27 Dhana > > Is it possible to secure the admin_path so that regular users don't > have access to it? I am already using the Auth component for a user > login wh

Re: Cake Sites Stats

2009-02-25 Thread Sam Sherlock
There are a few site listed here http://book.cakephp.org/view/510/Sites-in-the-wild a Sony Site, Mozilla Firefox Plugins and Snook's Blog these are all real & wild. as for being in top 3 - I guess the bribes are being received by those who pull the right strings :) 2009/2/26 leop > > > > Are

Re: svn or git?

2009-02-03 Thread Sam Sherlock
windows git support is getting better. SVN has a head start with GUI's, I have found that git extensions for windows to be nice - though msys-git has its quirks - I can't get gitweb to work from windows at all, but that is just being extra anyway. 2009/2/3 Esoteric > > I have used subversion fo

Re: svn or git?

2009-02-03 Thread Sam Sherlock
For me Git because "complex is better than complicated, now is better than never" also AFAIK git can svn, though svn can not git. I might perhaps revisit svn after becoming fully intimate with all that git has to offer. As I never really got of the ground with SVN whereas I got right into git th

Re: Configure CakePHP not to use Pretty Urls

2009-01-27 Thread Sam Sherlock
config.core.php - line 59(ish) 2009/1/28 PaulMan > > Hello everybody, > Is there a way to configure CakePHP NOT to use Pretty Urls? > I'm using the latest version. > > Best Regards > PM > > > --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Wordpress and cakephp

2009-01-25 Thread Sam Sherlock
+1 for wf. The plugin version is available on github http://github.com/klevo/wildflower/tree/master Merging two different systems can end up like Frankensteins monster - and may be more complex than a complete cake version There are some other cake CMS's on github two - not sure how complete the

Re: Gziping JS and CSS files using .htaccess

2009-01-25 Thread Sam Sherlock
try http://marcgrabanski.com/pages/code/asset-mapper 2009/1/25 Sridhar Kuppalli > This is not working. :( > Is there any other method? > > Regards > Sridhar K N > > On Sat, Jan 24, 2009 at 2:36 PM, _k10_ wrote: > >> >> Hi, >> >> This helper might interest you. - >> http://bakery.cakephp.org/art

Re: Can someone explain why this happens

2008-12-21 Thread Sam Sherlock
I am not sure what code you have in your verify action, but I would have two actions verify and confirm the verify would make a link to the comfirm action. Verify would check that the hash is associated with an inactive account Confirm set the coresponding account to active 2008/12/22 gearvOsh

Re: Moving Cake Folder

2008-12-16 Thread Sam Sherlock
put "C:\wamp\cake" in you include path either in you php.ini or your "httpd-vhosts.conf" eg in php.ini include_path = ".;d:\php-5.2.6\includes;d:\php-5.2.6\PEAR;C:\wamp\cake;C:\wamp\simpletest" ; windows include path or in vhosts php_value include_path ".;d:\php-5.2.6\includes;d:\php-5.2.6\PEAR;C

Re: Using the PagesController

2008-12-11 Thread Sam Sherlock
modifying files in your app directory is ok - is more code to supervise its how I would go about your objective (from what I understand of it) - mark's approach involves editing more files to set up - but works a treat. requestAction can be ok - but can be problematic also can really slow down you

Re: Using the PagesController

2008-12-11 Thread Sam Sherlock
I would say that element would be best but because you need to model->find you need to use something like requestAction or http://mark-story.com/posts/view/reducing-requestaction-use-in-your-cakephp-sites-with-fat-models as your doing a little and only want template echo'd in view and calls to hel

Re: Using Gzip

2008-12-10 Thread Sam Sherlock
you could use a.htaccess file to achieve this Marc Grabanski's Asset Mapper includes instructions for setting this up (optionally you may choose to use the AssetMapper in full) http://bakery.cakephp.org/articles/view/asset-mapper 2008/12/10 Arak Tai'Roth <[EMAIL PROTECTED]> > > Where should I b

Re: Bake doesn't do anything for me

2008-12-09 Thread Sam Sherlock
does "cake bake" provide options m,v,c then after pressing m you'll get a list 1 - x of you models pressing the corresponding number gets walks you through the process of creating models 2008/12/9 Lucki <[EMAIL PROTECTED]> > > Is there an issue using Bake with Oracle? > > I already set a project

Re: cakephp with jquery not with prototype

2008-12-03 Thread Sam Sherlock
1) enable the javascript helper 2) add $javascript->link('jquery-12.6') to your layouts/default.ctp - also put jquery1.2.6 in webroot/js you can pass an array of files to the javascript->link call. $javascript->link(Array('jquery-12.6', 'plugins/jquery-validation')) note that you don't put file

Re: JSON, AJAX or XML

2008-12-01 Thread Sam Sherlock
> > AJAX, JSON or XML? user which you feel comfortable with - cake can assist you in each case - see parseExtensions theres a form plugin for jquery google malsup form plugin - there also a validate plugin for jquery if you validating phone numbers email address etc then regex in javascript appr

Re: Error: cannot find bootstrap.php

2008-11-27 Thread Sam Sherlock
perhaps there is a better way but $this->log('controllerName actionName '); // this could use properties of object inside app beforeFilter 2008/11/27 Herman <[EMAIL PROTECTED]> > > Just wondering. In the error.log file is there any way to customize it > so I can see the current controller and a

Re: View caching and Ajax conflict with each other?

2008-11-27 Thread Sam Sherlock
e right > answer?? > I've never seen the _ajax extension in my view files... I'm on RC2... > you don't happen to know if this is a recent addition do you? > > Thanks for the info > > On Nov 27, 3:49 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:

Re: View caching and Ajax conflict with each other?

2008-11-27 Thread Sam Sherlock
Are you using parseExtensions? in my cache I have cache files in standard format and also those in ajax eg: for gallery controller show action I have 2 types of files reated in the cache gallery_show_91_6675.php gallery_show_91_6671_ajax.php hth Sam 2008/11/27 the_woodsman <[EM

Re: Getting started with themes and static files

2008-11-26 Thread Sam Sherlock
If you want to remove the /pages/ from the url you'd need to write some custom routes see the preset example for the home page which sets yourdomain.com/ to display views/pages/home.ctp eg Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); so /about -> views/

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread Sam Sherlock
as Marcelo says 2nd point http://groups.google.com/group/cake-php/browse_thread/thread/efccb52c57a56537 http://api.cakephp.org/class_form_helper.html 2008/11/16 Evert <[EMAIL PROTECTED]> > > Like the title says, I don't like the html that the form-helper > outputs. > So I was wondering if and ho

Re: Question about database.php

2008-11-11 Thread Sam Sherlock
in the same way other config files are created. > > On Nov 11, 11:43 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > whats the reason you want it to work like this? > > > > you can define different db connections > > > > 2008/11/11 Aaron Shafovaloff

Re: Question about database.php

2008-11-11 Thread Sam Sherlock
whats the reason you want it to work like this? you can define different db connections 2008/11/11 Aaron Shafovaloff <[EMAIL PROTECTED]> > > ? :-) > > On Nov 10, 5:55 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > Any reason why database.php doesn't follow the Configure:write() > > format

Re: Naming a Model "Model"

2008-11-04 Thread Sam DeVore
Bust out the thesaurus it's reserved === Sent from my AT&T Rotary Phone http://blog.samdevore.com On Nov 4, 2008, at 2:54 PM, Pyrite <[EMAIL PROTECTED]> wrote: > > I am developing an application for a business, they have categories, > products, and models. Is it a problem for CakePHP to name t

Re: Themes

2008-11-04 Thread Sam Sherlock
debug info disappears when you set debug to 0. you make your own theme as you need it, that styles your views (these are individual to each app) cake != wordpress 2008/11/4 Maverick <[EMAIL PROTECTED]> > > Hi all, > I am a bit new to CakePHP and have gone through the demos and read a > few boo

Re: Wampserver and Cake Bake

2008-10-24 Thread Sam Sherlock
have you done a simpple connection test using mysql? I had some issues when using an older version of mysql.dll which caused issues after upgrading php. Have you tried the php windows list? 2008/10/24 Merk <[EMAIL PROTECTED]> > > Hi, > > I have an installation of wampserver version 2.0 on my ma

Re: Does CakePHP support PDF as a view?

2008-10-23 Thread Sam Sherlock
see tcpdf on bakery http://bakery.cakephp.org/articles/view/creating-pdf-files-with-cakephp-and-tcpdf 2008/10/23 Mathew <[EMAIL PROTECTED]> > > I know there are PHP libraries out there that can convert HTML to PDF, > but I was wondering if it's possible to use Cake to convert rendered > views to

Re: What is the proper way of adding script to the layout?

2008-10-17 Thread Sam Sherlock
see this http://snook.ca/archives/cakephp/elemental_conditional_content_with_cakephp/ 2008/10/17 Robert <[EMAIL PROTECTED]> > > I want to add some scripts from views, elements, helpers to the > header. Header is in layout of course. What is the proper way to do > that? > > Two examples: > > - css

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
Theres more than one way to do it - the old perl adage :) I was using http://www.amcharts.com/ beofre that I tried jquery flot - but urgh not a lot of joy with that 2008/10/16 BrendonKoz <[EMAIL PROTECTED]> > > I hate when people do exactly what I'm going to do, but I wouldn't > post if I didn'

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
If you make your controller export xml to a location app/webroot/xml/ then make an action to gather then you can have flash access the exported file. set the base param of the flash object to you webroot, setting the file passed to flash as something like xml/exported-data.xml I have made a simpl

Re: Installing Magento w/ CakePHP

2008-10-15 Thread Sam Sherlock
sweet - all the better for being off GoDaddy too I'll bet :) I like the design of the site too. have bookmarked it for future browsing 2008/10/16 Kyle Decot <[EMAIL PROTECTED]> > > Thanks a lot! I got it to work by using your second suggestion. > > > --~--~-~--~~~---

Re: Installing Magento w/ CakePHP

2008-10-15 Thread Sam Sherlock
6 Kyle Decot <[EMAIL PROTECTED]> > > I tried that and still the same thing. I also noticed that if you go > to http://www.affinityskateboards.com/app/webroot/store/ then the page > will work. Any other ideas? Thanks a million. > > On Oct 16, 12:25 am, "Sam Sherlock"

Re: Installing Magento w/ CakePHP

2008-10-15 Thread Sam Sherlock
perhaps RewriteBase /store/ 2008/10/16 Kyle Decot <[EMAIL PROTECTED]> > > Well I finally got fed up with Godaddy's horrible hosting and moved > all my stuff over to Host Gator. This means that I no longer have to > use the cgi-bin because I am now using php5. I am however having > another problem

Re: Best Practices for multiple cake apps sharing tables?

2008-10-15 Thread Sam Sherlock
Plugins with customised bootstrap - your going to go deep on this eg more devouring of info (like Johnny no5 from shortcircuit) :) http://manual.cakephp.org/view/35/Advanced-Installation http://groups.google.com/group/cake-php/browse_thread/thread/74484afe7da5c1f0 looking at wildflowers plugin br

Re: view caching and progressive enhancement/ajax

2008-10-15 Thread Sam Sherlock
I set up caching the other day in a couple of apps, one is being made offline using ajax I was worried that I would get what you have described but I found that with parseExtensions cache files get created for both the standard full view and ajax alternatives (using ajax layout) I was delighted t

Re: Hosting A Cake App On GoDaddy!

2008-10-13 Thread Sam Sherlock
If GoDaddy is anything like anything like 1and1 mod_rewrite may work with a minor change see http://www.klevo.sk/cakephp/cakephp-and-some-web-hosts/ I have found that 1and1 uk requires adding a few / (in the following example my app is installed in a directory named v6) AddType x-mapp-php5 .php

Re: Linking to non-admin action from admin-action

2008-10-09 Thread Sam Sherlock
I think you have to add prefix => false to the array 2nd param passed to link - but it might be admin => false (I thnk its the former allowing the admin.routing to be changed eg members or ewoks) 2008/10/9 MikeB <[EMAIL PROTECTED]> > > I have a users controller with 2 actions, view() and admin_ad

Re: Does calling model methods from elements break MVC pattern?

2008-10-02 Thread Sam Sherlock
> > Does calling model methods from elements break MVC pattern? yep. Views are for laying out stuff. controllers for pasing data to view and models for obtaining data. If your model passes the data to the controller so that the controller has to process the data as little as possible for the v

Re: CakePHP Auth - Basic Template User System

2008-10-01 Thread Sam Sherlock
app starter pack that just does > > user registration/login/management (and does it well), and put it up > > on cakeforge for people to use. I noticed a couple of other similar > > concepts on the cakeforge, but for some reason, none of them had any > > files available to downl

Re: CakePHP Auth - Basic Template User System

2008-09-30 Thread Sam Sherlock
Try Neutrino CMS its fantasic; that uses auth. I downloaded some time ago; I have not used it on any projects though; Its a working example you can learn from All you'd have to > do is throw some other models and controllers on it and you'd have a > complete web app. I have found adding auth t

Re: email with link to mydomain.com

2008-09-28 Thread Sam Sherlock
"http://www.mydomain.com"; . $html->link('controller'=>'users','action'=>'activate',$key). 2008/9/27 donnerbeil <[EMAIL PROTECTED]> > > Hi, > > When a user registers on my site, an email with an activation link is > sent to him. In the email templates I would like to use something like > echo $ht

Re: timeout

2008-09-27 Thread Sam Sherlock
CAKE_SESSION_TIMEOUT number of seconds until session timeout. This figure is multiplied by CAKE_SECURITY. CAKE_SECURITY determines the level of session security for the application in accordance with CAKE_SESSION_TIMEOUT. Can be set to 'low', 'medium', or 'high'. Depending on the setting, CAKE_SE

Re: Cake Virtual Host and the Scripts directory

2008-09-27 Thread Sam Sherlock
becuase your running it through a project with its database settings dfined in app/config/database.php it may have different dbconnections listed but the console will allow you to choose between these - S 2008/9/27 brehg <[EMAIL PROTECTED]> > > So I have cakePHP set up to work with virtual host

Re: Blueprint CSS + Cakephp

2008-09-27 Thread Sam Sherlock
no reason why it should not work unless your css is not found blueprint has a llib directory and plugins (perhaps not any more) which I suppose your storeing inside app/webroot/css/ on that assumption echo $html->css(array('root', 'screen', 'fancy-type'), null, array('media' => 'screen, projection

Re: question regarding swfupload component

2008-09-22 Thread Sam Sherlock
Have you seen this article http://blogs.bigfish.tv/adam/2008/04/01/cakephp-12-sessions-and-swfupload/ there is also some information about setting up swfupload in cakephp in the swfupload forum too. - S 2008/9/22 introvert <[EMAIL PROTECTED]> > > I'm using the latest cakephp. > > There are tw

Re: avatar upload component?

2008-09-22 Thread Sam Sherlock
behaviours go in {app}/models/behaviours/ there is also this - with a ready to download example of an avatar image column in a profile table http://bakery.cakephp.org/articles/view/actas-image-column-behavior - S 2008/9/22 rocket <[EMAIL PROTECTED]> > > thanks. looks like what i need. > do

Re: Generate Excel from database problem (rendering layout)

2008-09-18 Thread Sam Sherlock
have you tried using $this->log() and double check that App::import is calling the right file 2008/9/18 mario <[EMAIL PROTECTED]> > > Thanks majna. But I can't set the debug mode to 1 since the script > will no longer run in 1.2 > if I do that. > > > On Sep 18, 12:23 pm, majna <[EMAIL PROTECTED]

Re: Cake setup for this kind of site:

2008-09-17 Thread Sam Sherlock
I have these in my .htaccess RewriteRule (nonCakeDir1|nonCakeDir2)/(.*) - [L] 2008/9/17 moment11 <[EMAIL PROTECTED]> > > I was hoping to make a couple of directories under the webroot, e.g. > > www.mysite.com/nonCakeDir1/ > www.mysite.com/nonCakeDir2/ > > so I could then make cal

Re: Cake setup for this kind of site:

2008-09-13 Thread Sam Sherlock
> > What's the best way to set and retrieve a site > name? Configure::write('App.name', 'Baking is Greeat'); expanding on that http://debuggable.com/posts/4-cakephp-tricks:4811ad82-32dc-4a38-bc10-36304834cda3 2008/9/13 703designs <[EMAIL PROTECTED]> > > OK, this makes sense. What's the best wa

Re: KTML Editor

2008-09-12 Thread Sam DeVore
At least the support is cheap === Sent from my AT&T Rotary Phone http://blog.samdevore.com On Sep 12, 2008, at 3:31 PM, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 12, 2008 at 11:24 PM, Jon Bennett <[EMAIL PROTECTED]> > wrote: >> >>> man that darn google always so fast wit

Re: Questions regarding models...

2008-09-11 Thread Sam Sherlock
So after thinking about it a > while I came up with a database do you have the database set up? if so you could set up cake to bake your inital models controllers and views student table would have id name etc course table would have id title etc final_grades table would have course_id stude

Re: Controller w/o model?

2008-09-09 Thread Sam Sherlock
I believe a better thing todo would be in the model $useTable = false; Models expect table based on cakes conventions. useTable can be used when your tables names need to be named differently Also something that is really cool is dynamic tables http://www.littlehart.net/atthekeyboard/2008/08/05/

Re: AuthComponent using, allowing free access to home.ctp

2008-09-05 Thread Sam Sherlock
Give this a go http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ Where is the controller for this page, > if any ? look in cake/libs/controller look at pages_controller.php 2008/9/5 ojonam <[EMAIL PROTECTED]> > > Hello, > > I am starting to use the Auth Component, and have, in

Re: HELP starting Cakephp

2008-09-04 Thread Sam Sherlock
Theres a book or two on amazon. Also read book.cakephp.org the only good > looking information I can find is on the IBM site and on the cakephp AFAIK those are outdated - I have no trouble finding blogs via google. Can't say they always look 'good' but there is a lot of solid info out there. h

Re: Examples for cake

2008-09-03 Thread Sam Sherlock
try http://groups.google.com/group/cake-php/browse_thread/thread/21521ad73a3133cb/bfc225830f77aa90?lnk=raot 2008/9/4 wael altahawi <[EMAIL PROTECTED]> > Hi All > > please i want one full example for working in Cakephp like small site > can you help please > > Thanks > > > > --~--~-~--

Re: Small CMS from cakephp

2008-08-30 Thread Sam Sherlock
> > I tried to use wildflower but its not responding so need to do some > hacking there. wildflower still needs some improvements but has some sweet features such as revisions for posts/pages ovencms looks nice - if a little overblown with features though 2008/8/30 mak <[EMAIL PROTECTED]> > >

Re: Any Good CakePHP Development Firms?

2008-08-30 Thread Sam Sherlock
There is this which may be helpful http://withcake.com/ 2008/8/30 ChUzEk <[EMAIL PROTECTED]> > > I'm looking for a really good CakePHP firm to help refactor a website > built by some developers who did not know how to use the framework > properly. > > Given that CakePHP is relatively new and ther

Re: How do you specify custom properties in a CakePHP model?

2008-08-28 Thread Sam Sherlock
/8/28 trustfundbaby <[EMAIL PROTECTED]> > > At the risk of repeating myself, I am looking for something that works > the same way as virtual attributes in rails. > > > > On Aug 28, 2:25 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > models h

Re: How do you specify custom properties in a CakePHP model?

2008-08-28 Thread Sam Sherlock
models have behaviours controller have components and views have helpers also you can add a function to the appmodel and then all models have access to it there is an example that shows this on the link to book you posted. 2008/8/28 trustfundbaby <[EMAIL PROTECTED]> > > I guess I'm talking mor

Re: Do I have to change webroot config ? Cake Newbie

2008-08-27 Thread Sam Sherlock
editing views/pages/home.ctp might be a good place for you to start The blog tutorial is simple. Since cake is MVC you'll have a model that gets data from a corresponding table a controller that performs basic preparation of that data and passes it to the view which then displays it The blog tuto

Re: IIS 5.1 & Hello World

2008-08-26 Thread Sam Sherlock
http://book.cakephp.org/view/308/installing-cakephp http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&hs=u0T&q=cakephp+windows+iis&btnG=Search&meta= 2008/8/26 mjverostek <[EMAIL PROTECTED]> > > Anyone have good instructions for installing/configuring CakePHP

Re: Please help me

2008-08-26 Thread Sam Sherlock
may be try RewriteEngine on RewriteRule/$ / [L] RewriteRule^$/app/webroot/[L] RewriteRule(.*) /app/webroot/$1[L] 2008/8/26 lacithetemplar <[EMAIL PROTECTED]> > > so, can you help me to configure my .htaccess file? > here is current configuration: > > >

Re: Allowing entire controllers with Auth component

2008-08-25 Thread Sam Sherlock
try $this->Auth->allow(array('display')); parent::beforeFilter(); 2008/8/23 tekomp <[EMAIL PROTECTED]> > > I'm using the Auth Component in my app_controller.php in the > beforeFilter function, which is great for making people login, but I'm > having a hard time allowing certain pa

Re: CakePHP User Authentication

2008-08-24 Thread Sam Sherlock
check the session using the session helper. 2008/8/24 ss <[EMAIL PROTECTED]> > > Hello all, > I want to set up a user authentication and check in the "View". > Meaning, if a user is logged in, it should say "Welcome [user]" and > then the regular form content. If the user is not logged in, it

Re: Authentication for admin and public user in one(1) app

2008-08-24 Thread Sam Sherlock
have a look at these. check the role in the isAuthorized function http://book.cakephp.org/view/396/authorize I would not have a separate table for admins (maybe others might disagree with me here; it may be suited to your intentions to do so) I would prevent them based on their role more info ht

Re: Cake sheet

2008-08-23 Thread Sam Sherlock
> > It would be really great to get the source sheet > It would be great to admend the existing. I gather that who ever created the existing sheet is too busy or not available. Anyway I am up for it! I have transposed the existing to a wordfile bits have been mismatched in the process :( so that

Re: tinymce not working

2008-07-21 Thread Sam Sherlock
lt;[EMAIL PROTECTED]> wrote: > > Wow, can't believe I forgot to check that. > > But yes I am, tinyMCE is not defined in my coded included up above in / > > views/news/edit.ctp > > > > As well > > syntax error in the tiny_mce.js code here apparently >

Re: cakePHP +Media Temple rewrite rule

2008-07-20 Thread Sam Sherlock
I have also had no troubles with mt and cake. If you uploading a site you've tested on a localhost then ensure you've not uploaded the tmp/cache/persistent 2008/7/20 Brett Wilton <[EMAIL PROTECTED]>: > I have a couple of sites running on MT using both CakePHP 1.2 beta and RC2 > and haven't had a

Re: ActAs Image column behavior in cake1.2

2008-07-19 Thread Sam Sherlock
http://book.cakephp.org/view/10/understanding-model-view-contr cakephp tells you some info about the deprecated function google cakephp 1.2 {functionname} deprecated - also search this list (I expect the questions already been asked and anwsered) 2008/7/19 kaushik <[EMAIL PROTECTED]>: > > I want

Re: Quick help?

2008-07-19 Thread Sam Sherlock
use input to generate labels with inputs (AFAIK if the name is password the type is automajically set to password) input('password', array('class' => 'required', 'tabindex' => '4')); ?> $form->text, $form->password, $form->textarea are used when you don't want the label to be generated // a confi

Re: How to track database queries

2008-07-18 Thread Sam Sherlock
if($this->User->save($this->data)) { //success } here is an extremely well written article clear and well paced (few errors minor easily correctable errors the validation array example is missing a username => ..) - so read and digest (not just copy and paste) http://www.jonnyreeves.co.uk/2008/0

Re: Creating a Basic Layout/Theme

2008-07-17 Thread Sam Sherlock
Do I need to create a new layout? no, by default cake use the default.ctp in app/viewslayouts/ And can I tweak the existing layout > to change the color? > yes but you'd be better making a stylesheet and putting it in the app/webroot/css/mystylesheet.css and in your layout $html->css('mystyleshe

Re: File uploading in cake

2008-07-16 Thread Sam Sherlock
You could use the image behavior http://bakery.cakephp.org/articles/view/actas-image-column-behavior 2008/7/16 kaushik <[EMAIL PROTECTED]>: > > I am new in CakePHP. I want to store the products and product details > with image (image will be store in folder, not in table). > > Here is my code det

Re: Authentication: logged user data

2008-07-14 Thread Sam Sherlock
http://book.cakephp.org/view/172/authentication 2008/7/14 Janoma <[EMAIL PROTECTED]>: > > Hello, > > I have two models: User and News. Each element in the News table has a > user associated with it (the author). How do I obtain the username of > the currently logged user? I have tried several thi

Re: British pound sign in 1.2 form helper

2008-07-11 Thread Sam Sherlock
what about the number helper currency? http://book.cakephp.org/view/215/number the following e($number->currency('12887.57','GBP')); outputs the following (with ncr) £12,887.57 2008/7/11 Adrian <[EMAIL PROTECTED]>: > > For now I have settled with: > > [code] > > > > [/code] > > This works

Re: home page

2008-07-10 Thread Sam Sherlock
home.ctp goes in views/pages/ no you don't need a controller for static pages unless your overiding it (which I'd say your not [at this stage anyway]) - S 2008/7/10 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Could some one please help me setup my home page. > i have a static page to be set as h

Re: Request for the Devs to take into consideration concerning print

2008-07-09 Thread Sam Sherlock
I have found boilerplate CSS (on googlecode) to be easily adaptable to suit bake. I have just checked to see how it performs in print preview and all holds up 2008/7/10 Jon Bennett <[EMAIL PROTECTED]>: > > Hi patrick, > > >> An edge case should by no means include 'printing a webpage'. > >> Com

Re: Question about CakePHP

2008-07-09 Thread Sam Sherlock
> > > > all your content is going to be inside a font tag background="img/probstandart2.png" $html->url - you'd want this path to be absolute rather than relative, but you could move this to a stylesheet and that would be beneficial all round really Is there is any way to

Re: Slow page loads, max execution time out

2008-07-08 Thread Sam Sherlock
> > So, what are we supposed to use instead? app::import 2008/7/8 gurkzor <[EMAIL PROTECTED]>: > > On 2 Juli, 12:08, keymaster <[EMAIL PROTECTED]> wrote: > > Don't use $uses, ever, it slaughters performance. > > So, what are we supposed to use instead? > > > > --~--~-~--~~-

Re: Automatic propagation of named params?

2008-07-08 Thread sam
Thank you biesbjerg, 100% the answer is was hoping for. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Automatic propagation of named params?

2008-07-08 Thread sam
er(). Or, rather, check to see if it's in $this->params > first, then session, and finally have a default to fall back on. > > On Mon, Jul 7, 2008 at 5:52 AM, sam <[EMAIL PROTECTED]> wrote: > > > Dear Cake pros, > > > I have a route that allows me to switch the l

Automatic propagation of named params?

2008-07-07 Thread sam
eate a link or redirect to a page. Is this possible? If not, what would be the best way to achieve this? Thank you very much. Sam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Protect admin page

2008-06-29 Thread Sam Sherlock
make a element that has the admin menu. in your view check the session echo the element if logged in dont if not (you could check the user role also) I can add prefix admin but how than I can access admin > page... > if I understand what your attempting: to access /admin/pages/index you'd have to

Re: The Blog Tutorial

2008-06-27 Thread Sam Sherlock
HI Darkie to expand upon Daniels response the files in the views folder are generally .ctp in 1.2 where 1.1 used thtml, either are fine in 1.2 AFAIK. When you say pages are you refering to your post entry pages or cake static Pages (no db hit) - in which case you just edit (make 1 if need) file c

Re: Blank Login Page

2008-06-09 Thread Sam Sherlock
try putting some $this->log('custom-login-debug', 'users_controller.php >> login...'); to trace what you've got happening. (not to flog a dead horse but auth is great for simple systems too) 2008/6/10 Arak Tai'Roth <[EMAIL PROTECTED]>: > > I know that auth isn't the same as ACL, but they can b

Re: CMS?

2008-06-09 Thread Sam Sherlock
I have been testing out wildflower it is really nice fully featured; though it is strikingly simular to the 37signals screen shot 2008/6/10 Lance Willett <[EMAIL PROTECTED]>: > > Off-topic, but needed to share this publicly: > > I followed the link above to check out Wildflower. In viewing the >

Re: Blank Login Page

2008-06-09 Thread Sam Sherlock
> > $dbuser = $this->User->findByUsername($this->data['User'] > ['username']); > >if (!empty($dbuser) && > ($dbuser['User']['password'] == sha1($this- > >data['User']['password']))) > have you tried using auth? 2008/6/9 Arak Tai'Roth <[EMAIL PROTECTED]>: > > So.

Re: Pure Cake Power in RC1

2008-06-04 Thread Sam Sherlock
I concur with Joel the update from 7056 to 7111 was massive, another sizable update since then too and the Newton quote seems ever so appropriate too thanks - S 2008/6/5 Joel Perras <[EMAIL PROTECTED]>: > > Kudos to the whole team. From the SVN logs, I can tell that the last > few weeks have b

Re: Cake svn HOWTO ?

2008-06-04 Thread Sam Sherlock
very wry :) right click on an (empty) folder choose checkout enter https://svn.cakephp.org/repo/branches/1.2.x.x as the URL repo click OK - thats all folks tortoise has a complete documentation (last time I looked - was was seconds ago) nothing wring with windoze (well inferior explorer) - S

Re: Sluggable behavior and recent cake 1.2 from svn

2008-05-24 Thread Sam Sherlock
works fine for me using latest svn - S 2008/5/24 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi, > i use the Sluggable behavior which worked mike a charm until the very > last svn update from CakePHP 1.2 (around may 22th 2008) i made - it > fails, silently which is worse - no slug created. Has any

Re: Auth login redirect pointing to image?

2008-05-23 Thread Sam Sherlock
Paste some code here http://bin.cakephp.org/ also have you tried removing jquery+thickbox to see what happens then? Also try setting debug to 1 or 2 in config/core.php 2008/5/23 theandystratton <[EMAIL PROTECTED]>: > > For some reason, my Auth component is redirecting to an image... and > I'm n

Re: cook up web sites fast

2008-05-13 Thread Sam Sherlock
also localhost/cake/users/register - is the users controller of the cake app installed in cake (folder of localhost) /users/register when used is a cake route which is specific to the app (cake knows where it is - see inside webroot/index.php) 2008/5/14 Sam Sherlock <[EMAIL PROTECTED]>:

Re: cook up web sites fast

2008-05-13 Thread Sam Sherlock
if you go the virtual root then you'll easily avoid these issues a simple one liner in the .htaccess with let you ignore a certain folders If I recall correctly the IBM tutorials have some out of date info have you seen chris hartjes tutorial and the stuff in book *http://tinyurl.com/5pq9mh - fi

<    2   3   4   5   6   7   8   9   >