How to recognize 404 Errors and send an email when this error happend?

2011-11-21 Thread heohni
Hi, when I am in live mode I would like to keep controll over the 404 errors, as we replacing an existing website and I don't know 404 errors may happen because Google has links indexed which are not valid anymore. Therefore I would like to send an email to me with the current referer link when a

php developer required in Melbourne Office (Australia)

2011-11-21 Thread hanibaal
please send your resume to hanib...@gmail.com if you have min 2 years experience with cakephp/jquery/mysql it is an opportunity to work on a startup. NOTE: this is not an outsourcing options... this is a 3 months contract and you must be able to work from our office in Melbourne (Prahran). Kind Re

Re: how to include javascript in cakephp ?

2011-11-21 Thread euromark
yeah, that kinda the point ;) On 21 Nov., 19:28, phpMagpie wrote: > I don't think the other two guys got the point that you gave this answer > over at stackoverflow?!? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Problem with deny deletion when using ACL

2011-11-21 Thread Daniel
I entered the ACL recipe in the "CakePHP 1.3 Application Development Cookbook". I have a user "andy" belonging to a group "user" and I have a category table on which I try to deny delete and update: cake acl create aco controllers Categories cake acl deny Group.3 controllers/Categories delete cake

Re: Permission problems with baking and running the app

2011-11-21 Thread func0der
Nice one. Should be default configuration. ;) I had cakephp 2.0. Thanks anyway :) On Nov 20, 8:47 pm, ADmad wrote: > Presuming you are using cakephp 2.0 you can specify 'mask' => 0777 in your > cache config in app/Config/core.php -- Our newest site for the community: CakePHP Video Tutorials

Re: What values can take in ACL grant command?

2011-11-21 Thread Daniel
I found an answer to one of my questions, the values can take on are: create, read, update or delete. I'm not sure how to deny "index" though, but I guess you create a specific ACO and then do a "deny all" ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Re: How to load helper from app/views/helpers CakePHP

2011-11-21 Thread Tilen Majerle
if you have Html Helper from your plugin, i'm not sure, but this should not work (if you have HtmlHelper in plugin) because you probably set it in AppController and make sure you have in your plugin controller $helpers $helpers = array( 'PluginName.HelperName' ); -- Lep pozdrav, Tilen Majerle ht

Re: Techniques for passing data around

2011-11-21 Thread phpMagpie
Telling us what data you are passing around and for what purpose may give us more information to be able to help you. The only thing I tend to pass around is an ID or slug (within the URL) and from that you can pretty much find whatever you want for the page the person is wanting to view or bei

Re: How to validate hasAndBelongsToMany multiple-select?

2011-11-21 Thread phpMagpie
If you're using the core 'multiple' validation rule then I was involved in many discussions about this some time back, the following search should provide all the reading you require: https://groups.google.com/forum/#!searchin/cake-php/validate$20multiple$20rule HTH, Paul. -- Our newest site f

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-21 Thread phpMagpie
OK, well I never knew that! All of my apps have file upload tools of one variety or another, but as I use existing plugins I guess I never had an opportunity to realise this cannot be done with pure AJAX. Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.o

Re: First try does not seem to find the CSS file

2011-11-21 Thread phpMagpie
> Cake should change this default! Not sure how cake changing a color in the default.css (something that most people would replace with their own CSS file instantly) would have helped your inability to recognise if a css file was loaded or not? Paul. -- Our newest site for the community: Cake

Re: how to include javascript in cakephp ?

2011-11-21 Thread phpMagpie
I don't think the other two guys got the point that you gave this answer over at stackoverflow?!? -- 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 ques

Re: Paginate relational data with multiple condition.

2011-11-21 Thread phpMagpie
For all things search-like consider CakeDCs searchable plugin. https://github.com/CakeDC/search Also for nesting models data make sure you're using containable. http://book.cakephp.org/view/1323/Containable HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.ca

Re: publish a project. what to do with database?

2011-11-21 Thread phpMagpie
Always good to learn how to import dumps via command line, but also worth asking your host if they can give you access to something like phpMyAdmin (other MySQL GUI interface's are available). HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Chec

Re: CakePHP

2011-11-21 Thread mark_story
One big difference for me, is CakePHP supports unit testing, Code igniter does not. At least not out of the box. -Mark On Nov 21, 12:09 am, Engr Sayeek wrote: > What is difference between CakePHP and Codeigniter ?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakep

Write unit test for a controller that uses AuthComponent in CakePHP 2.0.3

2011-11-21 Thread elitalon
Hi, I am trying to test a controller action that allows edition of user profiles. Among other things I want to test that every logged user can only edit its own profile and not others. In case of breaking this restriction the action must redirect to a predefined home page. With this scenario, I h

Re: publish a project. what to do with database?

2011-11-21 Thread Zaky Katalan-Ezra
Install mysql on the server. On your local machine run the command: mysqldump -u root -p password yourdbnane > outfile.sql. upload outfile.sql to the server on the server run the command: mysql -u root -p password yourdbname < outfile.sql Clean you db from development data. On Mon, Nov 21, 2011

What values can take in ACL grant command?

2011-11-21 Thread Daniel
I got the syntax for the ACL grant command: C:\xampp\htdocs\blogtest>cake acl help grant --- Usage: cake acl ... --- Commands: grant [] or all Use this command to grant ACL permissions. Once execu

Re: Help - Multiple Apps, Shared Core, Dispatch Errors - CakePHP 2.0.3

2011-11-21 Thread majna
Or use 'prefix' => Inflector::slug(APP_DIR) -- 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 unsubscribe from this group, send email to

Re: Paginate relational data with multiple condition.

2011-11-21 Thread euromark
what exactly is your question or where did you hit a wall? sounds more like a statement to me. On 21 Nov., 16:49, saddam hossoin wrote: > I have a four table, Questionnaire->QuestionGroup->Question->Answer. > > Questionnaire has many QuestionGroup, > Question Group has many Qusetion > Question h

Re: CakePHP

2011-11-21 Thread AD7six
On Monday, 21 November 2011 06:09:26 UTC+1, Engr Sayeek wrote: > > What is difference between CakePHP and Codeigniter ?? > Codeigniter is written with red crayons, while Cake sticks to the traditional php-mauvey-blue ones. AD -- Our newest site for the community: CakePHP Video Tutorials htt

Re: CakePHP

2011-11-21 Thread Jeremy Burns | Class Outfit
This page has all the info you need: http://lmgtfy.com/?q=What+is+difference+between+CakePHP+and+Codeigniter Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com Jeremy Burns Class Outfit http://www.classoutfit.com On 21

How to load helper from app/views/helpers CakePHP

2011-11-21 Thread Shehbaz
In our project we have placed the helper inside app/view/helper folder. It works fine in the application. The issue I am facing is that I using facebook plugin by webtechnick, and when I use helper in the plugin view, it tries to load the helper from CORE/cake/libs/view/ helper.php and gives warnin

CakePHP

2011-11-21 Thread Engr Sayeek
What is difference between CakePHP and Codeigniter ?? -- 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 unsubscribe from this group, send

Re: How to write unit test for getPopularItems()?

2011-11-21 Thread Linas Jakucionis
Hi, Common practice is to write unit tests against known test data, rather than against unknown production data. That way you could compare the actual values returned. When doing testing against unknown data you are limited to whatever extra checks you can make: * is the correct number of items

publish a project. what to do with database?

2011-11-21 Thread Nuno Yu
Hi! My friends. I'm a newbie to cakephp and have accomplished a project on my localhost. Could u tell me how to publish my project on a web server? I read articles saying just need upload the folders of my local webroot directory to webroot folder. But how to do with the mysql databases. Should I m

Paginate relational data with multiple condition.

2011-11-21 Thread saddam hossoin
I have a four table, Questionnaire->QuestionGroup->Question->Answer. Questionnaire has many QuestionGroup, Question Group has many Qusetion Question has many Answer i want to key searching in every model title field and paginate filter data. -- Our newest site for the community: CakePHP Video

Re: routing and seo => changing language

2011-11-21 Thread heohni
And another question: I would like to route this path: domain.com/search-in/categoryname/ categoryId to this domain domain.com/items/search/cat:8 means controller=>items, action=>search ... but how can I pass the cat: 8 where the number 8 is a variable number? -- Our newest site for the communi

Re: how to include javascript in cakephp ?

2011-11-21 Thread Sathia S
> > > echo $javascript->link('jcookie.js'); > echo $html->script("jcookie.js"); Instead of try this > > > -- Regards sathia http://www.sathia27.wordpress.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http:

Re: How to get client mac address in PHP ..?

2011-11-21 Thread Sathia S
> > > I need to know the MAC address of the connect clients, how can I do > this in PHP? > > > Please see this link. http://nazmulb.wordpress.com/2008/07/04/getting-mac-address-using-php/ But using this we can get mac address of some distros. -- Regards sathia http://www.sathia27.wordpress.co

Re: How to get client mac address in PHP ..?

2011-11-21 Thread Ma'moon
HTTP doesn't carry the MAC address over to your server, plus this is not a CakePHP question so i suggest using google before asking such a question in a specific mailing list that is dedicated for a specific topic. On Mon, Nov 21, 2011 at 1:15 PM, rrvasanth wrote: > Dear friends... > > I need to

How to get client mac address in PHP ..?

2011-11-21 Thread rrvasanth
Dear friends... I need to know the MAC address of the connect clients, how can I do this in PHP? Thanks Vasanth -- 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 Cake

routing Problem!

2011-11-21 Thread Serkan Sipahi
hi, first of all: sorry for my englisch! i would like realsies following url's: www.domain.com www.domain.com/somecategoriename/ www.domain.com/some-produkt-name.htm So without show the controller and the view in the URL. My current solution: routes.php conf. for PageController: Router::connec

routing problem!

2011-11-21 Thread Serkan Sipahi
hi, first of all: sorry for my englisch! i would like realsies following url's: www.domain.com www.domain.com/somecategoriename/ www.domain.com/some-product-name.htm So without show the controller and the view in the URL. My current solution: routes.php conf. for PageController: Router::connec

Re: Daylight Saving Time (DST) in cakephp

2011-11-21 Thread euromark
looks interesting that's where a behavior would come in handy (behaving as I described above). it would automate this process On 21 Nov., 09:25, Chris Cinelli wrote: > PHP 5.2+ has the functions to work on date and they automatically take care > of all the math for DST. > Our solution is current

Re: First try does not seem to find the CSS file

2011-11-21 Thread johng
False Alarm. I started messing with the css file and changed the background color This showed that the css WAS working, but that the default color was way bad. This change works.. == 8< == /** General Style Info **/ body { /** background: #003d4c; WAY TOO DARK **/ background:

routing and seo => changing language

2011-11-21 Thread heohni
Hi, I am using this router rule to change languages: Router::connect('/lng/:lang', array('controller' => 'p28n', 'action' => 'shuntRequest', array( 'lang' => '[a-z]{3}' ))); What do I have to do, if I want to add a rule like this: Router::connect('/this-is-a-special-link.html', arra

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-21 Thread rchavik
On Saturday, November 19, 2011 5:19:41 PM UTC+7, phpMagpie wrote: > > I am unaware of any limitation on uploading files via ajax, can you show > me where you read this? I read it here: http://jquery.malsup.com/form/#file-upload -- Our newest site for the community: CakePHP Video Tutorials htt

Re: First try does not seem to find the CSS file

2011-11-21 Thread johng
Thanks Will But I still cannot get it to work. There is a .htaccess file in both the project folder of the project and one in the \app folder. Neither is hidden. here is content of the one in project folder == 8< RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule

Re: Daylight Saving Time (DST) in cakephp

2011-11-21 Thread Chris Cinelli
PHP 5.2+ has the functions to work on date and they automatically take care of all the math for DST. Our solution is currently to run the servers in GMT. We set the default timezone to GMT in bootstrap.php We have also 2 functions in the AppController: public function toLocalTime($time) {