Re: 403 error

2014-07-30 Thread AD7six
That sounds like a consequence of web requests and CLI requests sharing the same tmp folder. E.g. executing Console/cake as root will create cache and log files which the web user can't edit. If that's the problem the simplest solution is to use different tmp folder locations for web and CLI

Re: CakePHP download function returns 'empty' file

2014-06-26 Thread AD7six
On Friday, 20 June 2014 20:05:55 UTC+2, Alexandr Pirogov wrote: Help me, please, to resolve my small problem! I have next function in my PostsController: public function download() { if (isset($this-request-query['file']) is_file(POST_ATTACH_PATH . $this-request-query['file'])) {

Re: index.php not found?

2014-06-23 Thread AD7six
On Sunday, 22 June 2014 20:33:16 UTC+2, Kevin Burton wrote: I used Composer to do the installation. Since it seems to be more or less convention I would like to try to get mod_rewrite working. I am not sure what additional information is needed to find out the cause of why it is not

Re: Database Error: SQLSTATE[42000] error cakephp 2

2014-06-20 Thread AD7six
This is one of the many symptoms of the model you're calling not being of the class you think it is. There's a longer description on stack overflow http://stackoverflow.com/a/21986180/761202 but in this case: $this-Invoices Model names are by convention singular - so most likely changing

Re: 3.0 - Cake not connecting to MySql DB

2014-03-16 Thread AD7six
This doens't look to be CakePHP (version 3 or otherwise) specific. On Saturday, 15 March 2014 17:33:10 UTC+1, Bayezid Alam wrote: Hi Jose, I did a fresh installation with two ways stated below: *From the composer, Do you want to remove the existing VCS (.gif, .svn..) history? [Y, n]?

Re: CONCAT in Join

2014-03-15 Thread AD7six
On Saturday, 15 March 2014 06:46:37 UTC+1, Justin Atack wrote: Hi All, I think I have found a bug in CakePHP... but I could be wrong as I'm a CakePHP newbie... The code can be seen here if you prefer it colour coded: http://pastebin.com/eXSpbAmw Heres some code from my

Re: RESTful (Form) Validation?

2014-03-12 Thread AD7six
I recommend taking a look at https://github.com/friendsofcake/crud, if not for the code (but why not =) ) for an example of how to do what you ask e.g. http://friendsofcake.com/crud/examples/blog.html#validation_errors curl -I -X POST http://your-site-domain.com/posts/add.json \ -d

Re: Custom MM:SS Time Validation with Regex

2014-03-11 Thread AD7six
If regular expressions aren't your thing - don't use regular expressions =) e.g. write a validation function like so: function validateTime($check) { $string = current($check); list($mins, $seconds) = expode(':', $string); $validMins = is_numeric($mins);

Re: upload compressed image

2014-03-10 Thread AD7six
On Monday, 10 March 2014 10:06:45 UTC+1, raj kumar Pustela wrote: hi all.. How to implement upload compressed image/video in cakephp 2.3.0.if any one know pls help me. It's exactly the same process as to upload an uncompressed image/video. AD -- Like Us on FaceBook

Re: Problem associated with app/tmp/cache/persistent

2014-03-10 Thread AD7six
On Tuesday, 4 March 2014 18:56:03 UTC+1, Francisco Chacon wrote: Hi: We have developed several websites using Cake and have found that when the values in the persistent cache reaches a file size of close to 30,000, the services for uploading images and sending emails stop working. The

Re: Set title_for_layout in controller or view?

2014-02-17 Thread AD7six
On Monday, 17 February 2014 09:25:59 UTC+1, perumal wrote: Hi, The best practice well be setting title in controller. I disagree. You _can_ set the title from a controller, but why do you consider that best-practice place to set it? The title is view-related content, the controller

Serving assets from nginx static server in cakephp 2.x

2014-02-14 Thread AD7six
Why not simply symlink you plugin webroot as indicated in the docs? AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this

Re: How to integrate big blue button on cakePHP 2.0

2014-02-10 Thread AD7six
On Monday, 10 February 2014 13:17:02 UTC+1, Mohit Garg wrote: Hi, Please help me . I want to integrate big blue button on cakePHP 2.0. Thanks Here you go: button class=big blueA button/button AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Localization extract comments

2014-02-10 Thread AD7six
On Monday, 10 February 2014 14:22:10 UTC+1, John Doe wrote: Hi, can I do something like that in CakePHP? /// TRANSLATORS: Please leave %s as it is, because it is needed by the program./// Thank you for contributing to this project.printf(_(My name is %s.\n), my_name); Not without

Re: Validation problem

2014-02-10 Thread AD7six
On Monday, 10 February 2014 15:53:45 UTC+1, Slawomir Wawak wrote: Hi! I try to create some validation to my form. I followed some forums and blogs looking for solution, but nothing helps. My controller looks like this: public function add() { if ($this-request-is('post')) {

Re: Session Problems due to browserconfig.xml

2014-02-10 Thread AD7six
On Monday, 10 February 2014 15:03:43 UTC+1, Thyagarajan Delli wrote: Hi All, We noticed a strange behavior where users reported that their session is timing out abruptly. On debugging the issue, we found the following behavior. When the user keeps working on different sections of the

Re: curl_exec not working with Veeva Vault integration into CakePHP

2014-02-07 Thread AD7six
On Wednesday, 5 February 2014 23:13:56 UTC+1, Zeeshan Ahmad wrote: I was told the function worked with a test file outside CakePHP so I'm thinking its something Cake related. There's no CakePHP dependencies in the below code - when you try to use it outside CakePHP does it work? Fatal

Re: Getting information from a model inside of a model file

2014-02-03 Thread AD7six
The $id property can be accessed without any problems. The primary key value (whether it's named id or not) is accessed via $this-id in CakePHP But the only way that I can get to any of the other information is to go through the data array: $this-data['InvoiceItem']['quantity']. You can

Re: Problem with year dropdown

2014-01-28 Thread AD7six
On Tuesday, 28 January 2014 14:43:50 UTC+1, Sam Clauw wrote: Is there nobody who can help me with this? Could it be possibile dat the datebase field type year isn't supported in CakePHP? If yes, what should I use instead? Varchar or...? * 'type' = 'year',* A year input is intended to

Re: Problemas com Component Auth

2014-01-07 Thread AD7six
Please write in English or use a group in your own language. AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group

Re: Initiating a 'DELETE' or 'POST' in a folder inside webroot

2013-12-22 Thread AD7six
On Saturday, 21 December 2013 13:31:38 UTC+1, Charles Martin Mendez wrote: Hi, I am using the fileupload jquery library. I was able to get everything working and migrated some functions to the controllers to make it compatible. The problem I am encountering is that fileupload is

Re: CakeSocket - Allowed memory size of bytes exhausted error

2013-12-04 Thread AD7six
On Wednesday, 4 December 2013 17:29:28 UTC+1, Sebastien Beausoleil wrote: Hi, I need help, I tried to send email with CakeEmail and I received this error: Error: Allowed memory size of 134217728 bytes exhausted ... File: /cakephp/2.2/lib/Cake/Network/CakeSocket.php Line: 199 What

Re: Strange console behavior

2013-12-03 Thread AD7six
Sounds like an early fatal error - if you put `debug(Debugger::trace())` in your `default.ctp` - it may give you more insight as to how/why it's doing that. AD On Tuesday, 3 December 2013 06:02:46 UTC+1, CrotchFrog wrote: Using Cake 2.4.3 on Ubuntu server 12.04 LTS A new unexpected

Re: Posting to the top of the tree using the Tree Behavior

2013-12-03 Thread AD7six
On Monday, 2 December 2013 19:22:14 UTC+1, Justin Thomas wrote: I'm using the Tree Behavior in one of my models. When a new record is added by default it post the new record at the bottom of the tree. What I need it to do is post the new record at the top of the tree. That will

Re: i18n Tree problem

2013-12-01 Thread AD7six
Check the Data that comes back from the dbhttps://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Behavior/TreeBehavior.php#L386. Either it's missing completely (probably due to the recursive setting used in the find, since translation data is joined in) or the data is in a different

Re: Production and Development Environment

2013-11-30 Thread AD7six
On Friday, 29 November 2013 05:45:50 UTC+1, advantage+ wrote: Hmm sounds like the exact thing I said……..and if you do Beforefilter::parent () in the controller what was the point of asking if there is an easy way to no go thur every controller! And that would not solve the problem

Re: Access Request Object data

2013-11-30 Thread AD7six
On Thursday, 21 November 2013 22:33:39 UTC+1, advantage+ wrote: How do you access CakeResponse object data in __construct() ? AppController::__construct? You don't - what are you trying to do? AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Starnge redirect from http to https on login

2013-11-22 Thread AD7six
This log does not look to show a redirect changing protocols. it shows, what looks like, two parallel/subsequent requests to /users on https and http. the last request shown doesn't originate from the request before it and has no referer. If relevant, check what is stored in the session in

Re: Cakephp CLI error

2013-11-21 Thread AD7six
The error message indicates it's looking for your database file in the wrong place: Failed opening 'c:\wamp\www\myappname\app\*Console\Config*\database.php' As evident from: c:\wamp\www\myappname\app\Consolecake bake all The docs

Re: Cakephp CLI error

2013-11-21 Thread AD7six
On Thursday, 21 November 2013 15:39:02 UTC+1, Victor Musvibe wrote: Solution is C:\wamp\www\myaapname\appcake [command] I was in a wrong folder, u dont need to call console Console\cake foo will basically always work. cake foo will *only *work if cake has been added to your path. I'd go

Re: ShellDispatcher help

2013-11-01 Thread AD7six
I'd guess you're using php 4 https://github.com/cakephp/cakephp/blob/master/lib/Cake/Console/ShellDispatcher.php#L32 On Friday, 1 November 2013 02:37:55 UTC+1, Jared Testa wrote: I'm new to CakePHP. My first install was 2.4.1, right before .2 came out. I tried using Shell in .1 and got an

Re: Bake doesn't work

2013-10-07 Thread AD7six
On Thursday, 3 October 2013 10:04:55 UTC+2, William Turner wrote: When I go to the app directory using the terminal and type *cake bake* , Unless it's an old version of CakePHP the command to run is: Console/cake This is OS independent and also doesn't require any installation

Re: a tree with some dependencies

2013-08-26 Thread AD7six
On Tuesday, 20 August 2013 16:25:40 UTC+2, Mohammad Naghavi wrote: Hi everybody, I have got a problem that I'm fighting with for a while so I just thought I would ask you for some advice. I have a tree with parent, child relation. each element on this tree has a relation with another

Re: Where are the sites?

2013-08-19 Thread AD7six
On Sunday, 18 August 2013 21:45:38 UTC+2, advantage+ wrote: Do you also speak English by any chance? but then I lose my companies edge. Ok good stuff! Maybe take a second and hit spell check. Have to run I am in my edges of these comapines. Please refrain from sending

Re: RewriteRule not working as before

2013-07-11 Thread AD7six
On Thursday, 11 July 2013 13:42:03 UTC+2, boris wrote: RewriteRule ^upozorenje/index$ warnings/index [L] rule is not working. If your rewrite rules aren't working - you're on your own and that's off topic for this group. Alternatively routes work. Routes work very well. Did I mention that

Re: RFC: New http://ask.cakephp.org

2013-07-10 Thread AD7six
Personally I don't see the benefit of a subsite, compared to what's available already on stackoverflow.com. There are some rather significant disadvantages to using a subsite instead of a tag, including: - Reduces the audience - Participants have to opt in rather than simply browse

Re: Cakephp is generating empty options to select the component

2013-07-10 Thread AD7six
Most likely this is an encoding problem, the labels that are blank contain non-utf8 characters. Investigating along those lines you'll probably find that the db data is not stored correctly as utf8. AD On Monday, 8 July 2013 21:47:56 UTC+2, Moacir Cardoso wrote: I'm having trouble creating

Re: Disable pagination in one action

2013-07-03 Thread AD7six
On Wednesday, 3 July 2013 10:01:23 UTC+2, Ernesto wrote: Hi all can i disable pagination just for one action? If you don't call the component it it's not going to do anything. The helper isn't loaded at all unless the component is used. Why do you need to disable it? AD -- Like Us on

Re: 301 infinite redirect

2013-07-03 Thread AD7six
On Tuesday, 2 July 2013 22:19:54 UTC+2, floydbrush wrote: Hi AD, after one complete day of debug/experiment without success, I noticed that attribute Age: 0 appears at the second Server Response of the loop. Searching for the specification of the Age header field, I suspect the

Re: 301 infinite redirect

2013-07-01 Thread AD7six
The easiest way to debug redirect problems is to put: public function redirect($url) { debug($url); debug(Debugger::trace()); die; } OR public function redirect($url) { $this-log($this-here); $this-log($url); $this-log(Debugger::trace()); parent::redirect($url); }

Re: 301 infinite redirect

2013-07-01 Thread AD7six
On Monday, 1 July 2013 18:31:56 UTC+2, floydbrush wrote: Hi AD, thanks for the help. I'm still trying to solve this problem. If I use a redirect 301 from /testnews/test to testredirect/test with $this-redirect(array('controller' = 'testredirect', 'action' = 'test'), 301); I get this

Re: 301 infinite redirect

2013-07-01 Thread AD7six
On Monday, 1 July 2013 20:57:04 UTC+2, floydbrush wrote: Sorry, I tried to explain but my spanish english is bad :/ What I wanted yo say is that not exists that information, seems like is not executed redirect in the loop. If there's no log entry for Cake redirecting from

Re: Cake or IE9?

2013-06-30 Thread AD7six
On Sunday, 30 June 2013 05:41:36 UTC+2, advantage+ wrote: Not sure if this is a Cake issue or just stupid IE. I have a small snip of js code that works in all browsers except IE9. There's no CakePHP in your question. AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Re: Model::AfterFind $results format, associations

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 10:49:19 UTC+2, Vanja Dizdarević wrote: Thank you Andy for taking time to write all that! I should have made my goal clearer, I agree - what array formats can be expected in the afterFind callback? Of course, I am trying to access only the respective model's

Re: Get old record in beforeSave when updating (doing a $this-find() inside beforeSave callback)

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 19:53:49 UTC+2, Vanja Dizdarević wrote: When updating a row, I wish to read the old data before saving the current record. Here's a simplified example: Controller code: $this-User-save(['id' = 3, 'username' = 'a-new-username']); Model code: class User

Re: Get old record in beforeSave when updating (doing a $this-find() inside beforeSave callback)

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 21:14:31 UTC+2, Vanja Dizdarević wrote: Thanks MorFer, that is a simple solution, but it feels like meddling with Model. At the point of the find, the model is in the save cycle and I don't know what else a find() might change in it. Btw, *$this-data* AND

Re: Model::AfterFind $results format, associations

2013-06-28 Thread AD7six
On Thursday, 27 June 2013 22:25:02 UTC+2, Vanja Dizdarević wrote: As solved in the thread I linked to in the original post: public function afterFind($results, $primary = false) { if (method_exists($this, 'doAfterFind')) { if

Re: Model::AfterFind $results format, associations

2013-06-28 Thread AD7six
formats). Please just look if in doubt - It's so much faster/easier. AD On Friday, 28 June 2013 12:59:57 UTC+2, AD7six wrote: On Thursday, 27 June 2013 22:25:02 UTC+2, Vanja Dizdarević wrote: As solved in the thread I linked to in the original post: public function afterFind

Re: Catching CakeEmail errors

2013-06-27 Thread AD7six
Just wrap it in a try-catch block AD On Thursday, 27 June 2013 07:33:12 UTC+2, Sarah wrote: I have legacy data in the database and that means incomplete email addresses have been entered by users. I can use validate to ensure all new ones are good but I still have to live with the old.

Re: Model::AfterFind $results format, associations

2013-06-26 Thread AD7six
On Tuesday, 25 June 2013 20:21:54 UTC+2, Vanja Dizdarević wrote: As many have failed before me, I am trying to massage some data in the afterFind callback in CakePHP 2.3.6. public function afterFind($results, $primary = false) { $results = parent::afterFind($results, $primary);

Re: Favicon.ico Error in Logs

2013-06-25 Thread AD7six
On Monday, 24 June 2013 20:26:49 UTC+2, 라이더제이슨 wrote: My CakePHP error.log (/app/tmp/logs/error.log is full of errors (well, Favicon.ico) 2013-06-24 11:12:54 Error: [MissingControllerException] Controller class Favicon.icoController could not be found. Exception Attributes: array (

Re: SaaS and AppController

2013-06-17 Thread AD7six
On Monday, 17 June 2013 14:53:26 UTC+2, Eric Haskins wrote: I have an app I am working on and I was wondering if this is the designed behavior. As usual my controllers extend AppController I use the beforeFilter() to determine the site the request is for and setup the environment

Re: How many Plug-ins Is Too many

2013-05-23 Thread AD7six
Just seems like a lot to load Nothing is loaded until you use it - and it won't make any difference if you _are_ using a file, whether they are all located in one app/plugin, or organized in plugins. AD On Wednesday, 22 May 2013 08:57:50 UTC+2, advantage+ wrote: I guess the question

Re: How to use Cache Helper and execute UPDATE query on every URL request?

2013-05-17 Thread AD7six
Of course cached views skip the controller - that's the whole purpose of caching your views. The normal way to increment a counter would be to include the equivalent of : img src=/articles/record_view/123 In your view file - and have a controller action which increments the counter and

Re: Research about frameworks

2013-05-16 Thread AD7six
On Wednesday, 15 May 2013 03:28:46 UTC+2, Fabio Schunig wrote: Hello! I'm doing a research about frameworks for PHP. Currently, I'm researching the frameworks Zend, CakePHP, CodeIgniter, Yii and Symfony. I'm new in the subject, and I'm reading a lot of tutorials and manuals. The

Re: Extraccion de datos de sitio web

2013-04-09 Thread AD7six
English please - or write to the ES group. Cheers, AD On Monday, 8 April 2013 04:11:46 UTC+2, Juan Omar Huanca Balboa wrote: Holas, Amigos Tengo en mente realizar un proyecto con cakephp para la extraccion de datos de una pagina de clasificados de un periodico local y enviar esa

Re: Problem with nested AND / OR Condition

2013-04-04 Thread AD7six
AND is the default way in which adjacent query sections are joined together - unless inside an array keyed with one of the other sql operators (OR, NOT, AND NOT etc.), where it is that key. What you have written in the question is attempting to do, more or less, this (for illustration, not the

Re: The request has been black-holed

2013-04-04 Thread AD7six
On Thursday, 4 April 2013 11:30:09 UTC+2, b...@articad.cc wrote: Hi, I didn't say the security component was on by default, That's exactly how I read your posts. I said the black hole thing happens by default. Well, it's the main purpose of the security component to secure your app -

Re: Fatal error fatal error call to undefined function

2013-03-22 Thread AD7six
By including your combinator helper - or not assuming this helper exists before calling it. AD On Wednesday, 20 March 2013 22:44:38 UTC+1, Chris Steenekamp wrote: Keep getting this error in cake 1.3: fatal error call to undefined function app/views/layout/default.ctp line 7 Here is the

Re: Exibir dados do banco em um campo com options

2013-03-22 Thread AD7six
Please ask a new question in Engilsh. AD On Thursday, 21 March 2013 15:31:54 UTC+1, Jobson Chinelli wrote: Bom dia galera, estou com dificuldades para exibir dados de uma tabela do banco de dados em um formulario de consulta de dados. Eu tenho uma tabela que armazena dados de uma empresa, e

Re: What are the cookies set by CakePHP automatically (cookie named CAKEPHP) for?

2013-03-22 Thread AD7six
but I use sessions It should be obvious that the cookie you're looking at is the *session* cookie. The hashed value it contains is the session id. AD On Friday, 22 March 2013 10:01:56 UTC+1, Anna P wrote: Hello. I have following question - what are the cookies, which are set

Re: Self Association parent_id doesn't display in view drop down

2013-03-20 Thread AD7six
$parentItems - $parents AD On Wednesday, 20 March 2013 03:28:09 UTC+1, mk wrote: Hi I am having some trouble getting a self association parent_id to show up in the scaffolding drop down list of a view. I have the following baked add action in my controller public function add() {

Re: Retrieve attachment from a Post - mailgun

2013-03-20 Thread AD7six
Show the result of debug ($this-request-data); That will either answer the question for you or show the data isn't there to be accessed. AD On Tuesday, 19 March 2013 18:26:15 UTC+1, MDay wrote: hi there - hoping someone can help me with a simple issue I have having with retrieving data

Re: CakePHP tutorials error, is this right?

2013-03-19 Thread AD7six
On Tuesday, 19 March 2013 00:35:21 UTC+1, cricket wrote: There's no need to allow people to hit your logout action That's bad advice. if they're not authenticated Then they'll be prompted to login - to access the logout function. Consider: user has been idle for an hour and clicks the

Re: Use REST API as Data Source

2013-03-18 Thread AD7six
Yes you can. Here's a datasource you might use:. https://github.com/nodesagency/CakePHP-Rest-Datasource AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups

Re: Model should be fat or thin?

2013-03-17 Thread AD7six
It's not about counting lines, rather putting code in the right place. There's a minimum amount of code that must be put in a controller for operating on a model to work.The meaning of fat-model, thin controller is don't do this: function confabulate($id) { $data =

Re: CakePHP 2.3 parent::beforeFilter Gets called twice

2013-03-13 Thread AD7six
CakePHP calls your controller beforeFilter() which already contains a call to parent::beforeFilter() and then calls the AppController's beforeFilter() again. That's not how CakePHP works. AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: override __()

2013-03-13 Thread AD7six
On Thursday, 14 March 2013 00:03:13 UTC+1, cricket wrote: No, because it's not a class method. You could create your own function in bootstrap.php which then calls __(). What are you trying to do? Actually yes, yes you can. Since 2.3.beta you can override all functions that are in

Re: Hash.php

2013-03-03 Thread AD7six
On Wednesday, 27 February 2013 19:45:29 UTC+1, CrotchFrog wrote: (Cake 2.2.5) I recently started getting an error that reads: Warning (2): Invalid argument supplied for foreach() [CORE]/Cake/Utility/Hash.php, Line 50] Line 50 in Hash.php is part of get() function for the Hash class.

Re: How to install without pear

2013-03-01 Thread AD7six
The installation instructions for CakePHP are here http://book.cakephp.org/2.0/en/installation.html Cheers, AD On Thursday, 28 February 2013 23:39:47 UTC+1, John wrote: I have a version of pear that is too old to install Cake 2.3.0 and I'm not in a position to upgrade it. The readme.md

Re: error on installation -db config file

2013-02-26 Thread AD7six
Did you cheat and read the error message =)? On Tuesday, 26 February 2013 21:12:31 UTC+1, Jeremy Burns wrote: It's just a wild guess, but I reckon you are missing a closing bracket on line 67 of /app/Config/database.php Jeremy Burns Class Outfit http://www.classoutfit.com On 26 Feb

Re: Link to PDF? Yikes!

2013-02-21 Thread AD7six
Assuming your files really are in app/webroot/... On Wednesday, 20 February 2013 15:05:00 UTC+1, April DeRossett wrote: I have read, and read, but I can not figure this out. I am hoping someone will point me in the right direction. I have .pdf resources in app/files/id#/../.. To which I

Re: Dumb with links

2013-02-16 Thread AD7six
For simple links why wouldn't you use use the image function echo $this-Html-image('cake_icon.png', array('alt' = 'CakePHP', 'url' = 'http://cakephp.org')); http://api.cakephp.org/class/html-helper#method-HtmlHelperimage For anything more complex, you are likely to find that your helper

Re: How do I search all the columns at once?

2013-02-12 Thread AD7six
What have you tried, what sql query does what you want to do? AD On Tuesday, 12 February 2013 05:57:43 UTC+1, Shahruk Khan wrote: Say I have column_1 and column_2 for a row. column_1 value is A and column_2 value is B. My query is A B. How can I perform this kind of search with CakePHP?

Re: let me know how to build site like this

2013-01-28 Thread AD7six
I think you need to write some code. Probably mostly php, but some html, css and js too. hth, AD On Monday, 28 January 2013 07:21:56 UTC+1, Vaibhav.Pathak wrote: HI every one plaese let me know which api i hav to use to build site like www.freetocompare.ie thanks reagrd's -- Like

Re: Bake of controller error in 2.3.0-RC2 and 2.2.5.

2013-01-26 Thread AD7six
Folder is an internal class name, As you may have realized - you cannot have a model named Folder. AD On Saturday, 26 January 2013 13:03:00 UTC+1, David Chappel wrote: Changing the table name from folders to foolders corrects the issue, thanks. -- Like Us on FaceBook

Re: CakePHP and Twitter Bootstrap

2013-01-19 Thread AD7six
On Friday, 18 January 2013 11:51:23 UTC+1, Anis Ghabri wrote: Good. But to me I'm creating a CMS so I'm trying to keep the markup as much compatible as possible with CakePHP's markup. What you should be doing, is generating all of the relevant markup with a helper - if you want different

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread AD7six
On Friday, 18 January 2013 09:19:12 UTC+1, Anis Ghabri wrote: Hi, I'm also new to cakephp It's easy to make twitter bootstrap work for you there's no need for plugin just add the css, img and js files to your webroot. Except if you do that, various helpers (of most relevance html,

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread AD7six
(function($){ $(table).addClass(table table-striped table-bordered);// For The tables. it will take the TWB style ... }); --- Le vendredi 18 janvier 2013 10:11:32 UTC+1, AD7six a écrit : On Friday, 18 January 2013 09:19:12 UTC+1, Anis

Re: loading plugin in cake 1.3 bootstrap

2013-01-17 Thread AD7six
Evidently you are using syntax from a different version of CakePHP to the one you have installed. What version of Cake are you using? AD On Thursday, 17 January 2013 08:38:12 UTC+1, Chris wrote: anyone,...?? On Wednesday, January 16, 2013 6:12:55 AM UTC-8, Chris wrote: hi guys,... can

Re: loading plugin in cake 1.3 bootstrap

2013-01-17 Thread AD7six
AD7six,... how r u,... I'm on 1.3 version On Thursday, January 17, 2013 1:08:34 AM UTC-8, AD7six wrote: Evidently you are using syntax from a different version of CakePHP to the one you have installed. What version of Cake are you using? AD On Thursday, 17 January 2013 08:38:12 UTC

Re: Advanced find with mulitple OR/WHERE/AND conditions

2013-01-16 Thread AD7six
On Wednesday, 16 January 2013 14:03:44 UTC+1, MetZ wrote: SELECT COUNT(*) AS `count` FROM `DATABASE`.`app_items` AS `Item` WHERE `Item`.`published` = '1' AND ((`Item`.`start_date` BETWEEN '2013-01-16 00:00' AND '2013-01-16 23:59') OR (`Item`.`end_date` BETWEEN '2013-01-16 00:00' AND

Re: DebugKit behaviour

2013-01-14 Thread AD7six
On Monday, 14 January 2013 20:28:31 UTC+1, McScreech wrote: On Monday, January 14, 2013 11:12:05 AM UTC-5, McScreech wrote: Hello, [ Apache 2.2.22 (Win32), MySQL 5.5.21, PHP 5.3.5, cakePHP 2.2.1 ] I'm having odd (IMO) behaviour from DebugKit - the toolbar only shows up if there are

Re: loading models in beforeFilter

2013-01-13 Thread AD7six
On Sunday, 13 January 2013 02:42:53 UTC+1, Stefano Campanella wrote: I'm using the datasources plugin, but it is not used in this particular controller nor in any class that is loaded there. I was referring to the location of your User model. I tried to load the class using loadModel()

Re: Conditional validation rule1 OR rule2

2013-01-13 Thread AD7six
On Saturday, 12 January 2013 02:11:26 UTC+1, cricket wrote: You'll need to create your own validation method. http://book.cakephp.org/2.0/en/models/data-validation.html#custom-validation-rules Personally, I'd create columns for both url and email in the table, then set up a custom

Re: loading models in beforeFilter

2013-01-12 Thread AD7six
On Saturday, 12 January 2013 23:23:31 UTC+1, Stefano Campanella wrote: Hi all, I am trying to find a way to successfully load a model in before Filter without causing the explosion of my controller :D I am working on CakePHP 2.3.0 RC2 Basically, I am calling ClassRegistry::init() to load

Re: Mongo php process slowness

2013-01-11 Thread AD7six
On Thursday, 10 January 2013 09:16:13 UTC+1, Raju Bishnoi wrote: Hi, I run the below php code with Mongo MongoClient to insert 100k records. Mongo took 70-75 second to complete and MongoClient took 440-450 second. $start = microtime(true); $objBaseMongoRecord = new BaseMongoRecord();

Re: Cake PHP doesn't work on Mac but on Windows

2013-01-11 Thread AD7six
On Thursday, 10 January 2013 14:29:45 UTC+1, Theresia Z wrote: I have a big problem with Cakephp. We installed it and built an application on windows, everything worked fine. Then I installed Cakephp on two other windows-computers and copy-pasted the app-Data, it worked. Now I tried the

Re: How Can I use different AppController with specific route prefix!?

2013-01-11 Thread AD7six
On Thursday, 10 January 2013 19:55:49 UTC+1, Khaled Attia wrote: Hello, I'm going to create API provider for my application, and I don't want to split the API from the main app because there is a lot of tables relations in models and components and other stuff that I want to use with the

Re: Baking cake 2.4

2013-01-11 Thread AD7six
On Sunday, 6 January 2013 14:08:07 UTC+1, Olufemi Oluoje wrote: Pls can anyone send me the link of how to bake cake 2.4. Because I have been having issues, due to change in the folder structure from 1.3 to 2.x. Pls, anyone link to a tutorial? Or pasting it here. Am baking my cakephp on

Re: Cake 2.0 documentation Vs Cake 1.3 documentation

2012-12-29 Thread AD7six
On Friday, 28 December 2012 06:34:27 UTC+1, Techinfocomp wrote: Hello, I Feel that Cake 1.3 documentation is much understandable and easier then Cake 2.0 documentation, I don't know why CakePHP Did that ? Eg: AuthComponent in 2.0 -

Re: Extracting core validation messages for I18N with the cake shell

2012-12-19 Thread AD7six
why not just use https://github.com/cakephp/localized#po-files AD On Sunday, 9 December 2012 20:50:15 UTC+1, Cyrille Faucheux wrote: That's also what I thought. Which is the reason why I can't see why I cannot extract in one operation every messages that may be displayed by my app: the

Re: Problem with cake i18n extract

2012-11-08 Thread AD7six
Looks like you have a file named Model/User.php - which doesn't contain a class named User AD On Tuesday, 6 November 2012 11:44:32 UTC+1, Tommaso wrote: Hello, I'm trying to use the cake i18n extract shell in cakephp 2.2.2 and 2.2.3 but I've got a problem. After answered the questions

Re: is it possible create schedule post with cakephp?

2012-10-22 Thread AD7six
On Monday, 22 October 2012 05:37:19 UTC+2, ecko usil wrote: Thanks kani for your answer, I know that cakephp is not CMS. In my case, I just develop application with cakePHP and I want scheduling some task, and automate update some action when scheduled time is coming. What can I say,

A website for cakephp beginners

2012-10-07 Thread AD7six
Stop spamming this group. Either ask questions, or provide answers but stop writing neither and just linking to your blog and odesk advert. I havent seen any useful replies from you, and I've already warned you before that your replies are not beneficial to the community. AD -- Like Us on

cakedc sample search

2012-10-04 Thread AD7six
Unfortunately, all CakePHP applications require CakePHP. AD -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Change view folder inside a Controller

2012-09-21 Thread AD7six
On Friday, 21 September 2012 00:48:49 UTC+2, cricket wrote: You can change $viewPath (relative to View dir). This is handy for AJAX, where you don't want the whole view returned. $this-viewPath = 'Elements/SomeDir'; $this-render('form'); For the example, you could instead simply

Re: Pagination Limit Default Global AppController CakePHP 2.x

2012-09-21 Thread AD7six
On Friday, 21 September 2012 13:01:56 UTC+2, Nikhil Agrawal wrote: Hi Directly you can change inside the pagination helper, it has been defined as 20 over there. 1) no it isn't 2) don't edit your Cake folder AD -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on

Re: Database name with period/dot results in SQL error

2012-09-20 Thread AD7six
Know that cake doesn't escape strings that are already escaped. So if you inject '`got.dot`' somewhere appropriate (maybe just put it in useTable) you can work around having a db with table names that are problematic. AD -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on

Re: Sugestion for next versions

2012-09-18 Thread AD7six
smaller string. Em segunda-feira, 17 de setembro de 2012 17h44min22s UTC-3, AD7six escreveu: Why would you not use uuids? AD -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed

  1   2   3   4   5   6   7   8   9   10   >