Posts by igrossiter • 265 points
10 posts
-
1
votes2
answers884
viewsQ: How to call an original function in a php overloaded method
I need to run the parent version of a method overloaded in php, it is possible? Ex.: public function delete() { // executa código extra e depois executa o método original super->delete(); }…
-
0
votes2
answers884
viewsA: How to call an original function in a php overloaded method
Yes, it is used parent:: public function delete() { // executa código extra e depois executa o método original parent::delete(); }
-
1
votes2
answers1027
viewsA: Center image in Nav menu bar
Set the elements on the same level as the image with display: inline-block and line-height with the same container size http://jsfiddle.net/4hr29t6w/2/ for the button to be right, in the example set…
-
1
votes2
answers1396
viewsA: How to organize css and js?
Rails used to put images, css and javascript in public really, but it is currently advised to use the Assets folder for these files: In Previous versions of Rails, all Assets Were Located in…
ruby-on-railsanswered igrossiter 265 -
1
votes3
answers2936
viewsA: How to automatically fill in a field?
This type of fill is done with ajax, it is not necessary to have a local base with the data as it is possible to use the mail api. Follow a link with a great explanation and tutorial.…
-
2
votes2
answers1837
viewsA: Advanced Custom Fields do not appear on the front end
Advanced Custom Fields saves the fields as custom Fields normal Wordpress. With the ID of post and the code of custom field use the function get_post_custom(): get_post_custom($id_do_post); For…
-
3
votes4
answers599
viewsQ: Is there a problem omitting the semicolon in a php tag with only one expression
When using php along with html, I know it works to omit ";" in one-line php tags, but there is some problem that this may cause? Omitting ";" is good practice or not? <?php algumaFuncao() ?>…
phpasked igrossiter 265 -
1
votes2
answers2370
viewsA: Integrate a jQuery plugin to a Wordpress theme
The answer of Brasofilo for sure is the most professional way to do this, to only integrate nivoslider in the theme, you must upload the files through wp functions. In Function.php insert the…
-
1
votes1
answer1853
viewsA: How to import/export categories in Magento?
The best way I’ve found to do this is by using this script http://www.atensoftware.com/p187.php only perform the registration that the site gives you a php that exports its products in a csv…
-
2
votes2
answers1295
viewsA: How to run a PHP script without refresh with jQuery?
Try to change $_SERVER['HTTP_REFERER'] for $_SERVER['REQUEST_URI'];. $_SERVER['HTTP_REFERER'] is the variable that stores the address of the page that sent the user to the current page, so it works…