vendor/bin is missing

2015-06-16 Thread Radharadhya Dasa
Hi, I saw a few examples for phpunit and Code Sniffer and both runs like /vendor/bin/xyz I installed cakePHP and all other packages via composer, but I do not have /vendor/bin folder. These files are in /bin for me. Any guess why is it so? rrd -- Like Us on FaceBook

ignore .htaccess on git

2015-04-16 Thread Radharadhya Dasa
Hi, My CakePHP project has a github repo. I want to add a sample .htaccess and /webroot/.htaccess file to the repo, but I do not want to track them, as different developers have to set up their own RewriteBase directive. How to do this? If I add them to .gitignore they will not be in the

Re: localize table header

2015-03-11 Thread Radharadhya Dasa
Thanks. I missed that. It is clearly there in the cookbook- rrd 2015-03-10 16:15 GMT+01:00 José Lorenzo jose@gmail.com: Check the other arguments of that function :) On Tuesday, March 10, 2015 at 2:18:31 PM UTC+1, Radharadhya Dasa wrote: Hi, How to localize model field names in table

localize table header

2015-03-10 Thread Radharadhya Dasa
Hi, How to localize model field names in table header in CakePHP 3? echo $this-Paginator-sort('User.name') will give me User name, but I would need it localized. rrd -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: cake app install

2015-03-03 Thread Radharadhya Dasa
I found out. First I should checkout the git repo, than run omposer update. That's all :) rrd 2015. március 2., hétfő 14:52:51 UTC+1 időpontban Radharadhya Dasa a következőt írta: hi, I have a CakePHP project hosted on github. As cake and some of the plugins use composer I am a little

cake app install

2015-03-02 Thread Radharadhya Dasa
hi, I have a CakePHP project hosted on github. As cake and some of the plugins use composer I am a little bit confused what is the best way to install the app somewhere. The vendor and plugn folders added to .gitignore, so they are not there on the git repo. The app itself is not a composer

cake app install

2015-03-02 Thread Radharadhya Dasa
hi, I have a CakePHP project hosted on github. As cake and some of the plugins use composer I am a little bit confused what is the best way to install the app somewhere. The vendor and plugn folders added to .gitignore, so they are not there on the git repo. The app itself is not a composer

Re: deploying CakePHP app

2015-01-24 Thread Radharadhya Dasa
it? rrd 2015-01-15 12:56 GMT+01:00 Rafael Queiroz rafael...@gmail.com: Using git hooks (http://git-scm.com/book/be/v2/Customizing-Git-Git-Hooks) or capistrano (http://capistranorb.com/). On Thu, Jan 15, 2015 at 8:49 AM, Radharadhya Dasa r...@1108.cc wrote: Hi, I have a CakePHP app hosted

deploying CakePHP app

2015-01-15 Thread Radharadhya Dasa
Hi, I have a CakePHP app hosted at github. What is the best way to deploy it to the production server? rrd -- 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

check controller variable is used in view

2014-12-20 Thread Radharadhya Dasa
Hi, Is there any tool to check if variables created in controller by $this-set is actual used in the view? I did some code review for one of my controller methods and I removed 4-5 unused variables and the load speed is significantly better. To have some tool for this would be really helpful.

Re: different css styles for checkboxes

2014-12-18 Thread Radharadhya Dasa
, Radharadhya Dasa r...@1108.cc wrote: Hi, Is it possible somehow to have different css classes for members of a set of checkboxes? echo $this-Form-input('groups._ids', ['options' = $fGroups, 'type' = 'select

universal searchbox and MVC

2014-12-18 Thread Radharadhya Dasa
Hi, This is more likely a theoretical question. I have let say 4 different models. On the header bar of the page I want to have an universal search box. If the user types anything in the box I start a search in all the 4 models. Where should i put my controller function? Just pick any of the

different css styles for checkboxes

2014-12-17 Thread Radharadhya Dasa
Hi, Is it possible somehow to have different css classes for members of a set of checkboxes? echo $this-Form-input('groups._ids', ['options' = $fGroups, 'type' = 'select', 'multiple' = 'checkbox',

Re: cakephp 3.0 save new entity with new related data

2014-12-16 Thread Radharadhya Dasa
to send data formatted correctly so the marshaller creates entities of the desired type. Similar to what you would do for creating belongsTo or hasMany associations. On Monday, December 15, 2014 7:13:35 PM UTC+1, Radharadhya Dasa wrote: Hi, I want to save a new contact. The contacts has

cakephp 3.0 save new entity with new related data

2014-12-15 Thread Radharadhya Dasa
Hi, I want to save a new contact. The contacts has skills (belongsToMany). Skill is a text input and with jquery autocomplete I search for existing skills. If the user select existing skills their id is sent to to controller, if they create new skills the controller gets their names starting

really verid sql thing

2014-11-09 Thread Radharadhya Dasa
Hi, Today I pop into something really strange. $this-Contacts-find() -select(['id', 'name']) -where([ 'lat' = $sameLatLng['lat'], 'lng' = $sameLatLng['lng'] ]); IT creates the following query: SELECT Contacts.id AS

Re: cakephp 3.0 unit test for plugin component

2014-11-03 Thread Radharadhya Dasa
, Radharadhya Dasa wrote: Hi, I am not able to create a test for my plugins component. Component: namespace RBruteForce\Controller\Component; use Cake\Controller\Component; use Cake\Routing\Router; use Cake\ORM\TableRegistry; class RBruteForceComponent extends Component { public function

cakephp 3.0 unit test for plugin component

2014-11-02 Thread Radharadhya Dasa
Hi, I am not able to create a test for my plugins component. Component: namespace RBruteForce\Controller\Component; use Cake\Controller\Component; use Cake\Routing\Router; use Cake\ORM\TableRegistry; class RBruteForceComponent extends Component { public function initialize(array $config) {

Re: validation criteria at least 3 fileds are not empty

2014-10-28 Thread Radharadhya Dasa
the validator, so it can validate a record also, not only fields. Anyway, I am not moving to CakePHP 3.x, so will not be able to give further ideas on that, but I do hope you find a solution in the end. Enjoy, John On Thursday, 23 October 2014 12:12:11 UTC+3, Radharadhya Dasa wrote: I checked

Re: displaying date without time

2014-10-25 Thread Radharadhya Dasa
The solution was: echo $contact-date-format('Y-m-d'); http://stackoverflow.com/questions/26561226/cakephp-3-displaying-date-without-time/26561331#26561331 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: Can't visit controllers/* Cakephp 3

2014-10-24 Thread Radharadhya Dasa
Your localhost/bookmarkrs page does not shown properly, it seems css is missing. It is strange, because the logo image is loaded. I would guess you have some folder / file permission error. If you followed the example there, than it should work. You could try to check apache and cakephp error

Re: validation criteria at least 3 fileds are not empty

2014-10-24 Thread Radharadhya Dasa
-errors()); But this is not what cake makes its automagic rules... So further digging needed. 2014. október 23., csütörtök 11:12:11 UTC+2 időpontban Radharadhya Dasa a következőt írta: I checked to cookbook and find out that validation handles singe fields. So I used beforeSave

Re: validation criteria at least 3 fileds are not empty

2014-10-23 Thread Radharadhya Dasa
not seen any built-in rules for this kind of validation, so my best guess is to roll your own. See section Custom Validation Rules under Validation in the CakePHP 3.0 book. That should help you on the way. Enjoy, John On Saturday, 18 October 2014 16:21:57 UTC+3, Radharadhya Dasa wrote: Hi

displaying date without time

2014-10-18 Thread Radharadhya Dasa
Hi, On CakePHP 3 I have a database field which is a DATE (not DATETIME nor TIMESTAMP) When I display echo $contact-date; It will show something like 2014. 01. 06. 0:00. How to hide hours and minutes? I tried print $this-Time-format($history-date, 'Y-m-d'); but I got 2014-0-6 How to get

validation criteria at least 3 fileds are not empty

2014-10-18 Thread Radharadhya Dasa
Hi, Is there a way to check if at least 3 fileds are not empty? I have 8 fileds and any of those could be empty, but at least 3 of them should be not empty. Is there any build in validation rule, or how to do it? Should I do it on beforeSave? rrd -- Like Us on FaceBook

Re: include js file to my layout

2014-10-14 Thread Radharadhya Dasa
It should be good like that. Check if your js file in webroot/js diretory rrd 2014-10-13 15:22 GMT+02:00 Yannick Nascimento yannicknascime...@gmail.com: hello there, i have this issues including js files. i have created a new layout and when i include css like this ?php echo

Re: CakePHP 3.0.0-beta2 released

2014-10-14 Thread Radharadhya Dasa
I installed mine via composer. Than at the time up upgrade I did it again via composer. For me everything went well, without any problems. Rrd 2014.10.15. 1:29 ezt írta (Abdelmajid el Ibrahimi a.elibrah...@gmail.com ): Hello, I want to ask if there is a way to upgrade my version cakephp 3

Re: Web service login function to check authenticate user in cakephp

2014-10-10 Thread Radharadhya Dasa
There is a good chance that the error is not here, but in the code what calls this. So please show the code which calls calls the webservice. rrd 2014.10.11. 3:56 ezt írta (Sam lightai...@gmail.com): It is cakephp 2.5 On Saturday, October 11, 2014 9:53:21 AM UTC+8, Matthew Kaufman wrote: Is

cakePHP 3 paginate associated data

2014-10-09 Thread Radharadhya Dasa
Hi, I have this public function view($id = null) { $this-paginate = [ 'contain' = ['Histories' = [ 'Events', 'Users', 'Linkups', 'Units' ] ] ]; $contact =

Re: cakePHP 3.0 load css from plugin

2014-10-03 Thread Radharadhya Dasa
files in the plugin's webroot folder On Thursday, October 2, 2014 4:29:50 PM UTC+2, Radharadhya Dasa wrote: Hi, How should I load a css file from a plugin on cake 3.0? I would like to let the plugin to laod its css file automatically if it is installed. rrd -- Like Us on FaceBook https

Re: cakePHP 3.0 load css from plugin

2014-10-03 Thread Radharadhya Dasa
, Radharadhya Dasa wrote: I added $this-loadComponent('Math'); to my plugins' bootstrap.php file but it did not load my css and js files automatically if the plugin is installed. I copied the solution from DebugKit but I think there should be some easier way than through EventManager. Could you give

Re: cakePHP 3.0 load css from plugin

2014-10-03 Thread Radharadhya Dasa
Ah I see your answer on stakoverflow. I will try it. Thank you. rrd 2014-10-03 14:48 GMT+02:00 Radharadhya Dasa r...@krisna.hu: Sorry, stupid clipboard... So I added DispatcherFactory::add('Asset'); to my plugins' bootsrap.php file. What I want to achieve if the user load my plugin

Re: cakePHP 3.0 load css from plugin

2014-10-03 Thread Radharadhya Dasa
Thanks. Personally I think it is a bad idea to force an app to have some css or some helper always loaded. Just tell your users to load your css or javascript on demand, same with the helpers. I thought if my plugin could load al the helpers, components, js and css files for itself, than it

Re: CakePHP 3.0 autocomplete

2014-10-02 Thread Radharadhya Dasa
')); ? ?= $this-Form-end(); ? /div I eliminated all of the items not necessary for the example, so there are likely errors in there, but it should give you the gist of what is needed for the autocomplete to work. Regards, --Kevin On Tuesday, September 30, 2014 7:33:24 PM UTC+7, Radharadhya

cakePHP 3.0 load css from plugin

2014-10-02 Thread Radharadhya Dasa
Hi, How should I load a css file from a plugin on cake 3.0? I would like to let the plugin to laod its css file automatically if it is installed. rrd -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Re: cant add a new row in a table from an existing table

2014-10-02 Thread Radharadhya Dasa
Switch on debug and check the error messages. rrd 2014-10-02 16:00 GMT+02:00 ajt jagguy...@gmail.com: Hi , I just want to add a new row of a table from a form of an exisitng table row. The issue is I can get the data from the existing table called Tutor but I cant save this data and other

CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
Hi, I am trying to make an autocomplete input work on Cake 3.0 The current 3.0 cookbook gives a code example here : http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html If I try it I get an error message: *Fatal error*: Declaration of App\View\Widget\Autocomplete::render() must

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
, September 30, 2014 2:33:24 PM UTC+2, Radharadhya Dasa wrote: Hi, I am trying to make an autocomplete input work on Cake 3.0 The current 3.0 cookbook gives a code example here : http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html If I try it I get an error message: *Fatal error

Re: i18n base language and database fields

2014-09-30 Thread Radharadhya Dasa
with __() and do Hungarian translation now. d) something else. rrd 2014-09-30 14:40 GMT+02:00 José Lorenzo jose@gmail.com: I'm not sure I follow, can you give an example of what you need to do? On Monday, September 29, 2014 5:55:20 PM UTC+2, Radharadhya Dasa wrote: Hi, I follow cakePHP conventions

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
: In the generated html there is no input for name at all. rrd 2014. szeptember 30., kedd 14:33:24 UTC+2 időpontban Radharadhya Dasa a következőt írta: Hi, I am trying to make an autocomplete input work on Cake 3.0 The current 3.0 cookbook gives a code example here : http://book.cakephp.org/3.0/en

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
Show us the from template for autocomplete I do not have anything else. Should I? Rrd T On Tue, Sep 30, 2014 at 7:59 PM, Radharadhya Dasa r...@1108.cc wrote: 1. /src/View/Widget/Autocomplete.php ?php namespace App\View\Widget; use Cake\View\Widget\WidgetInterface; use Cake\View

i18n base language and database fields

2014-09-29 Thread Radharadhya Dasa
Hi, I follow cakePHP conventions, so my database tables and fields have english names, as it so for cake's default error messages. I am building a webapp for a Hungarian client. I would like to use i18n as I think later the client will need internationalizing and localizing. But for now they

Re: Making callbacks in associated models work

2014-09-26 Thread Radharadhya Dasa
It happens if the *dependent* key is set to true. * Otherwise it should not happen.rrd* 2014-09-26 10:57 GMT+02:00 Mateusz 2131 mateusz.gros...@fingoweb.com: Hi. When I delete a record, it's associated records are deleted as well and that works perfectly, but the callbacks