#cookie #joomla #php

Joomla 2.5.* – Can’t Login to backend

If you can’t login to Administration Panel of a Joomla 2.5.* site, try setting above in You configuration.php : public $cookie_domain = ''; public $cookie_path = ''; Quick fix for the directories permissions: chmod 755 administrator language/overrides language/en-GB libraries cache administrator/cache modules media plugins templates tmp logs images components administrator administrator/language/en-GB administrator/language/overrides administrator/manifests/files administrator/components administrator/language administrator/manifests/packages administrator/manifests/libraries administrator/modules administrator/templates

#css #html #php #Sublime Text 3

Sublime Text 3 – CheatSheet & Plugins for Web develpment.

First point of the program is installing the Sublime Text Editory itself. If you are using Sabayon or Gentoo, the is an overlay sublime-text, so You can emerge it. Installing Sublime Text 3 on Gentoo / Sabayon layman -a sublime-text layman -S emerge --regen emerge -av app-editors/sublime-text Installing helpfull plugins for Sublime Text 3 First of all install “Package Control” an utility that would make the plugin install proces simplier. ...

#editor #ide #php #webdevelopment

Sublime 2 – quick configuration for WebDevelopment.

This post has ‘quick’ in the title, so lets go straight to the point. Download Sublime 2 from here Install Package Control – press CTRL+` and type: ```python import urllib2,os; pf=‘Package Control.sublime-package’; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),‘wb’).write(urllib2.urlopen(‘http://sublime.wbond.net/'+pf.replace(' ‘,’%20’)).read()); print(‘Please restart Sublime Text to finish installation’) ``` Install additional Sublime packages – press CTRL+Shift+P and type Install Package and install following: Emmet – for rapid creation of html i css DocBlockr – for quick docBlock generation SideBarEnhancements – for better left panel SublimeLinter – Lint’em all Git html5 Indent Guides Switch theme to Monokai Learn basic key bindings for Sublime editor. ...

#joomla #php

Joomla get POST data from form using jinput

As from Joomla! 1.5 retrieving POST data through JRequest::getVar('var_name'); or JRequest::get('post'); is deprecated. The new approach to get the whole $_POST array : $input = JFactory::getApplication()-input; $post_array = $input-getArray($_POST); Retrieving single value from $_POST: $input = JFactory::getApplication()-input; $my_val = $jinput-get('my_val'); The Jinput class provides the capability of filtering data. Avaible filters are: INT, INTEGER – Matches the first, signed integer value. UINT – Matches the first unsigned integer value. FLOAT, DOUBLE – Matches the first floating point number. ...